cancel
Showing results for 
Search instead for 
Did you mean: 

Using a custom linker script with STM32CubeMX and makefile output

Dominic_Valentino
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4
Mahmoud Ben Romdhane
ST Employee

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.

Hello @Mahmoud Ben Romdhane !

Yes the version number is: 6.9.1.

Thanks,

Dominic

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.

Similar:

https://community.st.com/t5/stm32cubemx-mcus/custom-linker-script-with-cubemx/td-p/307357

 

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.