Linker script for ROM to RAM copying
I am writing a USB MSD bootloader for an STM32L4 processor with 2MB of Flash. The bootloader code will reside in Flash as will the application code. The application code will most likely be larger than 1MB so I’m thinking to have only a single bank. I will thus need to copy the pertinent routines that access Flash for erasing and programming from Flash to RAM. I can put all the pertinent routines into one file. I would like some help in writing the linker script so that I can specify that file separately for ROM to RAM copying. I’ve been looking at the linker script manual but I’m still unclear about the exact syntax. Any help would be greatly appreciated!
Thanks
