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


missing standard C library

Forgive me if this is obvious. I am new to ARM and System Workbench. I just installed SW4STM32. I can’t compile any projects from ST because the compiler can’t find any of the standard C header files like stdio.h, stdint.h, _ansi.h, newlib.h...

Indeed, I don’t think the standard C library is installed. How am I supposed to get the C library?

I believe I’m having the same problem: when updating from 2.4.0 to 2.7.0.
I’ve tried reverting, deleting new install and re-installing 2.7.0 several times: Same result each time.
The messages resemble this:

c:\openstm32\systemworkbench\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.16.0.201807130628\tools\compiler\lib\gcc\arm-none-eabi\7.2.1\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory
 # include_next stdint.h
                ^~~~~~~~~~
compilation terminated.

(I couldn’t get the above to show lt and gt signs around stdint.h...)

My recommendation to you would be try an older version if you can. It looks like the broken ARM toolchain was introduced in IDE v2.5.0. I haven’t yet found why it’s not broken for everyone else.

This issue has now caused me about 6 hours of work. I’m going back to an older version and staying there. I can’t believe something so basic could be overlooked on a version change.

I’m now wondering if this is a missing library issue or something to do with the circular include prevention. I went back to a previous version and my problem went away. The other thing I noticed is that the includes all seemed to work properly in the prior version. What is strange is that my codes all compiled in the new version after cleaning. But for some reason once I messed with one of the include files it seemed like everything went to hell.

Jerry


In case anyone else is having the same problem:
Help -> Installation Details -> Installation History -> Delete
does not actually delete the files. Also, install doesn’t actually re-install by expanding the archive. So no amount of Delete/Revert/Install made any difference.

In my case, it appears somehow I ended up with an incompletely-unzipped directory at:

C:\OpenSTM32\SystemWorkbench\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.16.0.201807130628/tools/compiler

I could not figure out how to delete the folder or otherwise convince Eclipse to re-install it. I ended up manually unzipping the file:

st-gnu-arm-gcc-7-2017-q4-major_gdb-5_4-2016q3-win32.zip

Now, the GNU ARM toolchain is complete again.


I’ve been having an issue where even though the workbench finds the declaration (right click, find declaration) for various kinds of things (e.g. uint8_t, uint32_t, etc), they are still underlined and compiles ok. I don’t have this problem on the Windows version, just on my mac. I have included.

Jerry


 

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