cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Bootloader Question

soiferj
Associate
Posted on June 10, 2014 at 21:46

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 #stm32f4
3 REPLIES 3
Posted on June 10, 2014 at 21:54

You'd want to create a linker script (.ld) file which describes the memory floor-plan you want to use.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
soiferj
Associate
Posted on June 10, 2014 at 22:57

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?

Posted on June 10, 2014 at 23:54

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..