- Code: Select all
// Manually define these to try and force XC32 to compile the code ...
// For some reason the compiler type defs don't get mapped properly.
#define OSTOOLSET_SUPPORTED TRUE
#define OSCOMPILER OSMPLAB_C32
#define OSTARGET OSPIC32
#include <salvo.h>
After getting the demo working, I then wanted to experiment with using the OS_Replace() function to utilize one TCB for several different functions depending on the operating mode of the program. In this instance, the compiler failed at the link stage and flags each call to OS_Replace() with "undefined reference to OSReturn()". Apparently this results from the macro expansion of OS_Replace() defined in salvompt.h. I am linking to C:/Pumpkin/Salvo-PIC32/Lib/MCC32/libsalvofmcc32l-t.a.
Is this the wrong library to link? If its correct why is OSReturn() apparently missing?
Thanks
Jim