Loading...
 
Skip to main content

System Workbench for STM32


how to add stdint.h? (again)

I have seen how to add stdint.h?, and i've tried following it: that is, in a project started in STM32CubeIDE, and then imported in System Workbench, I added "include stdint.h" in the "*_it.h" file - unfortunately, I get this:

https://imgur.com/a/wm6AeZW

(btw, how do you include images on this forum? when I click Choose or Upload Images, I get "about:blank" page opened on Firefox ...)

... that is, I get 'Unresolved inclusions: stdint.h" (and a bunch of other, what I'd think of as, standard library headers).

So, how do I resolve this? I find it kinda weird if I need to add an include path for what I'd expect to be standard files — but if I do, which include path do I need to add, and how/where?

Ok, so I made a new System Workbench native STM32 project for the same Nucleo board; and could see that there are three paths under the Includes node:

C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825/tools/compiler/arm-none-eabi/include
C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825/tools/compiler/lib/gcc/arm-none-eabi/7.3.1/include
C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825/tools/compiler/lib/gcc/arm-none-eabi/7.3.1/include-fixed

(somewhat strangely, these strings are not present in any file in the newly created project)

I added these manually via

($project)/Properties/C/C++ General/Paths and Symbols/Includes/Languages (GNU C)/Include directories

... and set them as first - now stdint resolves ...