cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH.ld syntax error when upgrading to CubeMX v6.12.1

OmidES
Associate II

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.

45 REPLIES 45

@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.

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

streb2001
Associate II

If it compiles but chooses the wrong RAM then surely it is not fixed?

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.

Hard to say. In my case, DTCMRAM is not the right RAM for my application.

 

OmidES
Associate II

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:

 

OmidES_0-1733234315698.png