2014-06-10 12:46 PM
Hi! I am working on a custom bootloader for the STM32F4. I think my jump to app code is correct, however, I am a bit lost on how I would specifically compile my code to be run at a specific memory address (in my case 0x08020000). I am using Eclipse for C/C++ with the GNU ARM Eclipse plugins. Thanks!
#programming #bootloader #stm32f42014-06-10 12:54 PM
You'd want to create a linker script (.ld) file which describes the memory floor-plan you want to use.
2014-06-10 01:57 PM
I've tried changing the flash memory origin to the position I want my app to be at, and changing the size accordingly. Is there anything else I need to do?
2014-06-10 02:54 PM
That would depend on what other steps you want, but the .map file and .hex file should both reflect the address you have linked the code to reside at. I would suggest you review the .map file, and confirm to your own satisfaction that the code has been built the way you want/expect.