I am writing a bootloader for a STM32L controller. So far I have been using the Keil start up files, but now I need to tweak the load addresses and other stuff. I have written a custom scatter file, and my variables are copied from flash to ram as it is supposed, but I don't understand why? I can't find any code doing this in the startup files!
Is the embedded bootloader doing this work? How?