Servo lib conflict with UART libs

Hi,

There seems to be a conflict with the UART libs and the sevo lib. Is it because they both use ISRs?

How do we work around this?

Thanks,
Colin

Hello, Colin.

I am not aware of any conflict between those two libraries. Are you using the official Wixel SDK or some fork of it? Why do you think there is a conflict?

–David

Thanks for looking at it David. It’s the standard SDK.

If I #include <servo.h> in wireless_serial.c I get this:

?ASlink-Warning-Undefined Global ‘_ISR_T1’ referenced by module 'wireless_serial’
make: *** [apps/wireless_serial/wireless_serial.hex] Error 1

And if I #include <uart1.h> in test_servos.c I get this:

?ASlink-Warning-Undefined Global ‘_ISR_URX1’ referenced by module ‘test_servos’

?ASlink-Warning-Undefined Global ‘_ISR_UTX1’ referenced by module 'test_servos’
make: *** [apps/test_servos/test_servos.hex] Error 1

If you get an “ASlink-Warning-Undefined Global” when trying to include a library, it just means that the linker was never told to link that library into your app. You can specify which libraries get linked in by adding an options.mk file to your app. See pololu.github.com/wixel-sdk/ for details or just look at the options.mk files for some of the other apps.

–David

Thanks David. I would have never figured this out by myself. Even though the doc clearly says:

Colin