2024-09-19 01:46 PM - last edited on 2024-10-01 07: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.
2024-12-03 01: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.
2024-12-03 01:58 AM - edited 2024-12-03 01: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
2024-12-03 02:07 AM
If it compiles but chooses the wrong RAM then surely it is not fixed?
2024-12-03 03: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.
2024-12-03 04:27 AM
Hard to say. In my case, DTCMRAM is not the right RAM for my application.
2024-12-03 06:00 AM - edited 2024-12-03 06: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: