how iadd .o file link in ld file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-01 9:59 PM
i'm using stm32H7,i want to use ITCM/DTCM ram,so i want add .o file in stm32H7XXXXX.ld file
i try
.main_section {
. = ALIGN(4);
CORE/src/main.o(.data);
. =ALIGN(4)
}>ITCMRAM
but gcc report error
so i want to known how fix it?
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-02 7:04 AM
To add .o and libraries in link script itself rather than in ld command line, use INPUT command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-02 7:21 AM
Well you'll need to inter-stage any content you want to end up in RAM to FLASH, and then have code in startup.s copy it to the final destination.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-04 7:11 AM
ok,thanks
