Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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?

 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs