Skip to main content
SF49ers
Associate II
April 4, 2025
Solved

CubeMX + Nucleo G031 + FreeRTOS v2 + Makefile = Bug

  • April 4, 2025
  • 2 replies
  • 732 views

Hello,

create a project with the above settings and it will result in a build error (missing header file).

Thank you.

Best regards potter

Best answer by Mahmoud Ben Romdhane

Hello @SF49ers ,

 

Thank you for bringing this issue to our attention.

 A ticket has been raised to the dev team in order to correct this behaviour. Internal ticket number: 207157.

 

Best Regards.

Mahmoud

 

2 replies

Technical Moderator
April 4, 2025

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

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Andrew Neil
Super User
April 4, 2025

@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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
SF49ers
SF49ersAuthor
Associate II
April 4, 2025

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

Technical Moderator
April 9, 2025

Hello @SF49ers ,

 

Thank you for bringing this issue to our attention.

 A ticket has been raised to the dev team in order to correct this behaviour. Internal ticket number: 207157.

 

Best Regards.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.