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


Errors trying to compile and link Hello World out of the box

United Kingdom

I am a complete novice with System Workbench and don’t really know my way around C++ compilers. I’ve been protected from them by using the Arduino environment for several years but, as i want to use an STM32 processor on a project, I thought I would dip my toe in the water with System Workbench and use a proper dev environment, rather than using Arduino_STM32
Tried to compile the Hello World example and it failed because the PATH variable didn’t seem to point to where the installer had put arm-none-eabi and make.exe. After doing some searching of this forum I managed to understand and correct that but now, although the compiler seems to run I get a string of warnings (12 of them) about undefined references and then

collect2.exe: error: ld returned 1 exit status

If I understand this correctly there is a problem with finding libraries but I really don’t know how to proceed from this point.

I apologise in advance for asking what is probably a REALLY basic question but getting the Hello World example to compile ought to work out-of-the-box shouldn’t it? And once I have just SOMETHING working I can build on that as I teach myself.

Thanks
Dave

have you already try the Internal builder? Go to Project->Properties->C/C++ Build and under Builder Settings select Internal builder under Builder type combo box
United Kingdom

Thanks for replying. I hadn’t tried that but I have now. The results are the same unfortunately.
I don’t want to clutter up the forum with loads of screen dumps but if it helps the last few lines in the console window are:-

c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-isattyr.o): In function `_isatty_r’:
isattyr.c:(.text._isatty_r+0x18): undefined reference to `_isatty’
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-lseekr.o): In function `_lseek_r’:
lseekr.c:(.text._lseek_r+0x24): undefined reference to `_lseek’
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-readr.o): In function `_read_r’:
readr.c:(.text._read_r+0x24): undefined reference to `_read’
collect2.exe: error: ld returned 1 exit status

15:16:15 Build Finished (took 3s.511ms)


can you post the steps that you follow to create the hello word program?
(and what processor you choosed)