2025-04-04 4:17 AM
Hello,
create a project with the above settings and it will result in a build error (missing header file).
Thank you.
Best regards potter
2025-04-04 5:33 AM
Hello @SF49ers ,
First let me thank you for posting and welcome to the ST Community.
For more investigation, I suggest please that you provide your Ioc.File and a screenshot of the build error.
Thanks.
Mahmoud
2025-04-04 6:33 AM
@SF49ers wrote:it will result in a build error (missing header file).
Is the file actually missing, or is the compiler just not finding it?
2025-04-04 1:30 PM
The CubeMX generates the source code and when you enter the folder and type "make" the generated code is missing the header file stm32g0xx.h.
- Start a project from ST Board: select NUCLEO-G031K8
- Select SYS Tab: Enable Serial Wire and set Timebase Source to TIM1
- Enable FreeRTOS CMSIS_V2
- Set a Project Name and set the Toolchain / IDE to Makefile
- Generate Code
Now open a terminal window and enter the created project folder. Type 'make' and you will get the following error message:
"... cannot open stm32g0xx.h: no such file"
If you use the FreeRTOS CMSIS_V1 instead, everything is comiling and linking fine.
Best regards potter