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


Build failed on stmcube generated code with hundreds of unresolved references, Here is a fix

I generated code with stmcubemx and then double clicked .cproject so System Workbench for STM32 imported the project. I selected build all and had MANY errors. Mostly “cannot be resolved errors” that seem to trace to these two missing headers. Stdint.h and stdio.h were not being found. (discovered using project-c/c++ index-search for unresolved headers)

I went to project menu-properties -mcu gcc compiler-includes-add
to add the needed path C:\MinGW\include (on my computer.) This did not work initially as quotes were added automatically making the entry “C:\MinGW\include” so the path did not work.
I then used project menu-properties -mcu gcc compiler-includes -edit to remove the quotes.
Success! the project now compiled.

This could be because GCC was installed on my computer separately (previous) to system workbench. Hopefully this information may help others (and the extra added quotes problem may get addressed.)

Thanks for System Workbench stm32 keep up the good work!

Thank you MrE :-)

Can you give the way you did the project ?
the mcu choosen and the options under CubeMX how do you generated the project ?

Many thanks, I’ll have to look to it in case of issues in CubeMX
Christelle

Thanks for taking interest. I’ll put up the .ioc file let me know if you need more info.

I had other issues on first try at generating code but I was fumbling about since I was new to stmcube (and system workbench).


Hi,

I tried ... but not reproduced your issue :-|
Can you give me the version you use for :
- cubeMX
- SystemWorkbench ?
the way you generate the project with CubeMX ?
the way you import the project under SystemWorkbench ?

:-) thank you

@christelle.burguera
I generated the code by selecting the Generate code option in the Cubemx menu, then double clicked the generated cproject file to import into system workbench.
I took the time to try and duplicate the problem by doing another fresh install of SYSWB on my laptop and could not generate the problem...but it did give me a clue. A requester to install GCC came up AFTER SYSWB decared itself finished installing. For curiosity I checked the last saved dates on SYSWB and the associated GCC on my main computer (the one that had the issue).
SYSWB uninstaller.jar (created at or near the end of the install) 12/7/2017 12:10 AM
sysworkbench/plugins/fracg .../tools/compiler/.version (and associated includes) 12/8/2017 12:54 PM

It seems somehow the GCC installation was delayed for 12 hrs and this is why the includes were not found. Call it user error ..., or windows blocking the install until it finished a background update needing a reboot to complete? In any case it explains what happened if not why.

I was however able to reproduce the problem with SYSWB adding unwanted quotes when adding new include paths. ( compiler-includes-add )

BTW are you associated with SYSWB or STMCUBEMX or both?

Your quotes issue is a bit strange to me. After reading the thread few days ago, I naively put quotes around declared Includes in my project’s settings and the build completes without errors. Could you attach a screenshot of your configuration?