CubeMX + Nucleo G031 + FreeRTOS v2 + Makefile = Bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Labels:
-
Bug-report
-
STM32CubeMX
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-09 2:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-09 2:38 AM
That doesn't answer the question of whether the file is actually missing, or is the compiler just not finding it?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-09 9:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-09 9:36 AM
@SF49ers wrote:The answer is no and yes.
So that tells you that the problem is in the Include Paths.
A complex system designed from scratch never works and cannot be patched up to make it work.
