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.

 

 

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.

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.