Skip to main content
Graduate
October 6, 2024
Solved

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

  • October 6, 2024
  • 1 reply
  • 4137 views

Hello,

Since the latest release of CubeMX (6.12.1) installed, 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 STM32F103C8T6.

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.

 

The terminal output the wrong as below , after  run  the default cmake-build task with the project templete generated by CubeMX (6.12.1)  :

STM32F103C8Tx_FLASH.ld:56: syntax error
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
build finished with error(s).

Then, after replacing 6.12.1 flash.ld  with 6.12.0 flash.ld  , the errors are eliminated.

Here are two versions of the flash.ld  attached. 

---

Thanks for your help.

Best answer by STTwo-32

Hello @hopefully and welcome to the ST Community :smiling_face_with_smiling_eyes:.

This is a known behavior that has been reported in this post and we will fix on the coming releases.

Update: this issue has been solved on the STM32CubeMX V6.13.0.

Best Regards.

STTwo-32 

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
October 6, 2024

Hello @hopefully and welcome to the ST Community :smiling_face_with_smiling_eyes:.

This is a known behavior that has been reported in this post and we will fix on the coming releases.

Update: this issue has been solved on the STM32CubeMX V6.13.0.

Best Regards.

STTwo-32 

Visitor II
November 20, 2024

Hi @STTwo-32,

any idea, when the next release will be done, fixing this issue? We ran into the same problem now with a new dev-project and just spend half a day on this with no outcome- only option will be to downgrade now, which really is an issue for us.

 

Best Regards. SC22