Skip to main content
Mario Luzeiro
Associate III
February 2, 2026
Solved

different ld files generated, file name xx.ld (lower case) vs XX.ld

  • February 2, 2026
  • 2 replies
  • 255 views

STM32CubeMX generates by default a xx.ld file.

It has copyrights from 2023. However, if I set "Apply Application Regions Settings to Linker File", it will generate a file with 2025 copyright, different template, also with XX.ld case, which on Linux, will give issues.

 

Version 6.16.1

Best answer by Ghofrane GSOURI

Hello @Mario Luzeiro 

Your contribution is much appreciated.

ticket 226560 has been escalated to dev for further investigation.

I will keep you posted with updates.

THX

Ghofrane

2 replies

Ghofrane GSOURI
Technical Moderator
February 3, 2026

Hello @Mario Luzeiro 

I'm currently investigating this behavior. I will get back to you ASAP.

Could you please explain what issue you are facing because of this behavior?

Thx

Ghofrane 

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.
Mario Luzeiro
Associate III
February 3, 2026

Could you please explain what issue you are facing because of this behavior?

Its the inconsistency of the case in the file name.

Eventually, I can workaround it and it wont cause issues, but:

 


X.ld case, which on Linux, will give issues.

STM32CubeMX by default generates a MCU_xx_FLASH.ld file.

With "Apply Application Regions Settings to Linker File", it will generate a MCU_XX_FLASH.ld

STM32CubeMX cmake uses MCU_xx_FLASH.ld file.

On Linux, case file name matters.
I have to delete MCU_xx_FLASH.ld and rename MCU_XX_FLASH.ld to MCU_xx_FLASH.ld (also because I'm already tracking MCU_xx_FLASH.ld), every time I generate code on STM32CubeMX.

Eventually I can start use upper case version

 

Associate II
February 3, 2026

As a workaround (until ST solves it) you could try:

- delete one of the files

- replace it with a sym link (ln -s remaining_file deleted_file) to the other file OR make a hard link (cp -l remaining_file deleted_file)

 

Ghofrane GSOURI
Technical Moderator
February 3, 2026

Hello @Mario Luzeiro 

Which toolchain and MCU that you are using ?

THX

Ghofrane

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.
Mario Luzeiro
Associate III
February 3, 2026

toolchain? does not matter, I guess? I'm using latest version of STM32CubeMX on Linux, which is what generates the files.

MCU: STM32H562

 

This is no big deal, no need for workarrounds, I was just reporting the issue, hopping it will be fixed.