Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   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 get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Code size doubles when converting C project to C++

Hi, I noticed when converting a C project to C++, that the code size nearly doubles. It is a STM32Cube generated project. The project builds and runs fine, but is nearly twice as large. Seems like the C project uses nano newLib, where C++ does not? In linker for C project, I see:
-specs=nano.specs
But, this is not present in linker for C++ project.

Any idea how I can get C++ project to use newLib? Is this possible?

I figued it out. Doing the following seems to use newLib (nano), and reduces code size by about half.

In , and in the “MCU G++ Linker”, “Miscellaneous” section add the following flags:

-specs=nano.specs