cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Linker Script with CubeMX

PMart.1
Associate III

Hi there,

I would like to customize the linker script generated by CubeMX.

Right now, any changes to the linker file get overwritten when I generate code from CubeMX.

Is there a way I can accomplish this? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

You can rename the generated .ld file and specify the new file name in the linker settings. The renamed file should not be touched anymore.

View solution in original post

5 REPLIES 5
KnarfB
Principal III

You can rename the generated .ld file and specify the new file name in the linker settings. The renamed file should not be touched anymore.

Thanks @KnarfB​  that did the trick.

I cannot get this solution to work for my project. I have renamed the linker script AND moved it to a different folder (Core) but CubeIDE still overwrites it when I generate code.

DSala.18
Associate

in case anyone still wondering:

it's here:

Screenshot 2023-09-07 at 12.17.50.png