2022-01-11 10:27 PM
Hi Team
I'm working on custom bootloader.
And I want to know if it possible to locate a custom bootloader in any sector.
Is it okay if the boot loader is not in the first address of FLASH 0x08000000?
[My Conditions]
IDE: STM32CubeIDE
MCU: STM32F405RG
Solved! Go to Solution.
2022-01-12 09:57 AM
The F4 assumes bootable code/vector table is located at the base of FLASH (or ROM/RAM depending on mapping via BOOTx pins)
The H7 has some more options, but your bootloader needs to reside in the first 16KB FLASH block. You can put your App code anywhere you like deeper into the FLASH memory.
2022-01-11 11:07 PM
Check if there is a "boot address" in option bytes (probably does not exists on this MCU).
Put boot loader at 0x08000000, check some condition during ~100ms after boot and proceed to main application in sector 1. Sector 0 (bootloader) may be write protected to keep device from being bricked during firmware update.
2022-01-12 08:19 AM
Exactly normal no, but you can use bigger system technology bootloader level 0 , in addr from mcu start this jump to any sector bootloadeer level 1 and here you start to app....
2022-01-12 09:57 AM
The F4 assumes bootable code/vector table is located at the base of FLASH (or ROM/RAM depending on mapping via BOOTx pins)
The H7 has some more options, but your bootloader needs to reside in the first 16KB FLASH block. You can put your App code anywhere you like deeper into the FLASH memory.
2022-01-13 01:47 AM
Hi, everyone!
Thank you for the reply.
I tested some codes, and F4 needs to locate the boot code on base address of FLASH.
Thanks.