Loading...
 

STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32


Adding a custom Library to SW4STM32 project

France

Hi Sylvain,

That exactly what I thought: in BlueMox_Library.h you should declare these variables; however here you define them. Instead, in BlueMox_Library.h you should have the variables declarations:
extern volatile float Iload; 
extern char buffer 30;
and in BlueMox_Library.c you must add the definitions (that were incorrectly placed in the header file):
volatile float Iload = 0.0; 
char buffer 30 = {0};

Then your project should compile and link without any problem.

Remember: you should only declare things in header file, never define them (except for static inline functions).

Hope this clarifies things,

Bernard (Ac6)