2024-07-09 11:50 PM
H745 startup files are located in "CM7/Core/startup/startup_stm32h745xx_CM7.s" or "CM4/Core/startup/startup_stm32h745xx_CM4.s".
However, the build source path for the startup files in the mx-generated.cmake in each core's folder is ". /Startup/startup_stm32h745xx_CM7.s" or ". /Startup/startup_stm32h745xx_CM4.s".
Therefore, the cmake file must be changed to build.
2024-07-15 02:36 AM
Hello @imagawa122
First let me thank you for posting.
I tried to reproduce the described behavior but the code is compiled correctly.
And after checking the mx-generated.cmake the startup file path is defined this way:
Could you provide a simplistic project showing this behavior?
BR,
Semer.
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.
2024-08-31 01:53 PM - edited 2024-08-31 01:55 PM
I was about to create a post to report the same bug. the mx-generated.cmake file aims to ./Startup/startup_stm32h755xx_CM7.s
but the real path is
./Core/startup/startup_stm32h755xx_CM7.s
I've searched for text on the CubeMX directory trying to identify if there is a template with this path incorrectly configured but to no avail...
Not to mention that I have to change this path for CM4 and CM7 cores every time I auto generate code with CubeMX
Any advice on how to investigate or solve this issue?
Thanks!
2024-09-09 06:00 AM
Can we please get more feedback from ST to solve this issue with CubeMX?
I've found this issue also reported in another post:
2024-09-10 12:49 AM - edited 2024-09-10 01:02 AM
@imagawa122 wrote:H745 startup files are located in "CM7/Core/startup/startup_stm32h745xx_CM7.s" or "CM4/Core/startup/startup_stm32h745xx_CM4.s".
However, the build source path for the startup files in the mx-generated.cmake in each core's folder is ". /Startup/startup_stm32h745xx_CM7.s" or ". /Startup/startup_stm32h745xx_CM4.s".
Therefore, the cmake file must be changed to build. DGME
The build configuration in the mx-generated.cmake file for both CM7 and CM4 uses incorrect paths for the startup files, currently set as . /Startup/startup_stm32h745xx_CM7.s and . /Startup/startup_stm32h745xx_CM4.s. To fix this, update the paths to point to the correct locations: CM7/Core/startup/startup_stm32h745xx_CM7.s and CM4/Core/startup/startup_stm32h745xx_CM4.s, then save the changes and rebuild the project to ensure the build system can locate the startup files properly.
2024-09-10 04:32 AM
That's what I'm doing, fixing the paths and the project compiles, but, as these files are regenerated every time I click on "GENERATE CODE" on CubeMX I have to fix them repeatedly.
As I'm learning to use this tool, I make changes very often, and on each such change, I need to modify the two files with the wrong paths. That's why I'm asking for a fix to the root problem.
Thanks