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

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

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.

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

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

 

That doesn't answer the question of whether the file is 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.

The answer is no and yes.

I just thought it is the better way to post a 2 minutes step by step guidance that reproduces the error, so the dev team has much less work.

 


@SF49ers wrote:

The answer is no and yes.


So that tells you that the problem is in the Include Paths.

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.