2022-05-01 09: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?
2022-05-02 07:04 AM
To add .o and libraries in link script itself rather than in ld command line, use INPUT command.
2022-05-02 07: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.
2022-05-04 07:11 AM
ok,thanks