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 two short videos (registration required) 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


 

Newest Forum Posts

  1. Building project - subdir.mk error by nupurkohadkar1997, 2019-12-06 18:10
  2. openOCD Wrong device detected by maxim221, 2019-12-06 12:32
  3. STM32429I_Discovery board with printf float support problem by johannes.visser@msc-technologies.eu, 2019-12-05 16:08
  4. malloc heap issue with CubeMX Project by johannes.visser@msc-technologies.eu, 2019-12-05 16:04
  5. Debugger not working by Daniel Jack Morley, 2019-11-27 21:46
  6. Compiler change problem by Lucian Pop, 2019-11-20 17:41
  7. Sample programs and compiling by jjtimer, 2019-11-20 10:31
  8. Unit test issues for STM32 by Rinkedevries, 2019-11-18 10:32
  9. Ubuntu 19.04 Debug problems by costantino, 2019-11-17 19:17
  10. Compile without eclipse by JSStabl, 2019-11-14 15:55

Last-Modified Blogs