Skip to main content
Associate
Oct 4, 2023 7:34 PM UTC
Solved

Using a custom linker script with STM32CubeMX and makefile output

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

This topic has been closed for replies.
ST Technical Moderator
Oct 9, 2023 9:48 AM UTC

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.

4 replies

ST Technical Moderator
Oct 5, 2023 9:20 AM UTC

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
Oct 5, 2023 11:30 AM UTC

Hello @Mahmoud Ben Romdhane !

Yes the version number is: 6.9.1.

Thanks,

Dominic

ST Technical Moderator
Oct 9, 2023 9:48 AM UTC

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
Sep 26, 2024 5:52 PM UTC
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.