Custom Linker Script with CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-14 7:49 AM
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!
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-14 7:59 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-14 7:59 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-19 8:49 AM
Thanks @KnarfB that did the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-29 10:11 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-09-07 3:19 AM
in case anyone still wondering:
it's here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-26 10:52 AM
Similar:
A complex system designed from scratch never works and cannot be patched up to make it work.
