Skip to main content
Associate
October 4, 2023
Solved

Using a custom linker script with STM32CubeMX and makefile output

  • October 4, 2023
  • 2 replies
  • 2811 views

Hello,

I use CubeMx to generate a Makefile project.

However, whenever I regenerate the code, it overwrites the linker script (STM32H743ZITx_FLASH.ld in my case).

Is there anyway to prevent CubeMx from doing this?

Thanks,

Dominic

Best answer by Mahmoud Ben Romdhane

Hello @Dominic_Valentino,

In order to stop overwriting the linker script (STM32H743ZITx_FLASH.ld) generated by CubeMx .I advise you to rename this file and specify the new name in the linker settings.

Thanks.

Mahmoud.

 

 

2 replies

Technical Moderator
October 5, 2023

Hello @Dominic_Valentino,

First let me thank you for posting and welcome to the ST Community

Can you provide please the STM32CubeMx version which you are using.

Thanks.

Mahmoud.

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.
Associate
October 5, 2023

Hello @Mahmoud Ben Romdhane !

Yes the version number is: 6.9.1.

Thanks,

Dominic

Technical Moderator
October 9, 2023

Hello @Dominic_Valentino,

In order to stop overwriting the linker script (STM32H743ZITx_FLASH.ld) generated by CubeMx .I advise you to rename this file and specify the new name in the linker settings.

Thanks.

Mahmoud.

 

 

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.
Andrew Neil
Super User
September 26, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.