FLASH.ld syntax error when upgrading to CubeMX v6.12.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-19 1:46 PM - last edited on ‎2024-10-01 7:39 AM by Andrew Neil
Hello,
Since the latest release of CubeMX (6.12.1), I have been encountering syntax errors related to the "FLASH.ld" file. This issue only arises when I generate code while setting the Toolchain/IDE to CMake. I am using STM32H753IIKx. It seems that CubeMX does not specify which RAM to use when setting the Toolchain/IDE to CMake.
I have also included the FLASH.ld file that was generated for your reference.
Thanks for your help.
Solved! Go to Solution.
- Labels:
-
Bug-report
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 1:12 AM
@OmidES If your issue is solved using the new release (STM32CubeMX V6.13.0 and STM32CubeH7 V1.12.0). Please close this post as solved by selecting the correction the V6.13.0 as best answer.
Best Regards.
STTwo-32
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 1:58 AM - edited ‎2024-12-03 1:59 AM
Yes, it solves the problem for me now. I will mark it as a solution.
Even though the code can now be compiled without any error, when I flash the code on my MCU, it does not run since CubeMX chooses the DTCMRAM as the default RAM.
Is there any way to select which RAM to use in CubeMX, by any chance? Should I create another post to highlight this issue?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 2:07 AM
If it compiles but chooses the wrong RAM then surely it is not fixed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 3:06 AM
Hello @OmidES
This is a new issue. Please open a new post for it.
Best Regards.
STTwo-32
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 4:27 AM
Hard to say. In my case, DTCMRAM is not the right RAM for my application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 6:00 AM - edited ‎2024-12-03 6:16 AM
I think I found a solution to also choose the desired RAM in CubeMX. This has been added in CubeMX v6.13.
To do this, navigate to Tools > Memory Management, where you can select the type of RAM you want to use.
Make sure to enable the following options:
- "Apply Application Regions to Peripherals"
- "Apply Application Regions to Linker Files"
- and check the "Default Data Region" box.
Also, ensure that you delete the existing .ld file in your project folder. Otherwise, the .ld file will not be updated.
I have highlighted the important steps for your attention in the figure below:

- « Previous
- Next »