Skip to main content
Visitor II
May 30, 2012
Question

Libraries and multi-CPU projects

  • May 30, 2012
  • 0 replies
  • 550 views
Posted on May 30, 2012 at 10:27

Another problem, and it is the 4th that i found in few days.

STM8 libraries doesnt support a project with multiples devices, I was able to fix it just including at the beginning of each .c file something like: (for exampleo for stm8s_uart1.c)

#if defined(UART1) 
.... 
#endif

So, if you have a generic project and you include the uart1 because one of the device use it, when you compile for another device you get an error in that library. #error-library-multi-cpu
    This topic has been closed for replies.