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


Convert to C++ results in linker error "undefined reference to _exit"

Using a simple CubeMX generated project, the project builds and debugs ok but when I do a Project “Convert to C++”, I get a link error “undefined reference to _exit”. Converting back to C works ok.

Already answered here: http://www.openstm32.org/forumthread739Question.

When converting to C++, linker .ld file reference needs to be changed from ${workspace_loc:/${ProjName}/LinkerScript.ld} to ..\STM32F407VGTx_FLASH.ld

This setting is found in Project / right-click menu Properties / node C/C++ Builder / Settings / tab Tool Settings / node MCU G++ Linker / General / field Linker Script (-T).

After this, I could link/debug etc. and I could rename my main.c to main.cpp and link/debug etc.