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


undefined reference to `_exit'

I’ve transferred IAR code to system workbench for STM32 but getting the folloing error while building:

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Wl,-Map=output.map -Wl,

c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.0.0.201410081102/tools/compiler/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libc.a(lib_a-exit.o): In function `exit’:
exit.c:(.text.exit+0x16): undefined reference to `_exit’
collect2.exe: error: ld returned 1 exit status


Can anyone help.

Thanks
Jitendra

France

Hi Jitendra,

If you transfer code from IAR, the problem is related to the different standard C libraries used (IAR has its own C library and System Workbench uses a newlib-based library provided by linaro).

The best way to import from another tool is to create a standard System Workbench project, selecting the board and firmware library you want to use (StdPeriph or HAL) then copy just your application code and header files in the src and inc folders of the newly created project; do not copy any of the IAR-provided files, only your own source code and it should work without problem.

Bernard

Hello Bernard,

It worked. Thanks...

Jitendra