cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX + Nucleo G031 + FreeRTOS v2 + Makefile = Bug

SF49ers
Associate II

Hello,

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

Thank you.

Best regards potter

3 REPLIES 3
Mahmoud Ben Romdhane
ST Employee

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

 


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

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