reset: fixed rp2040 bootloader entry point

Signed-off-by: Alex Malishev <malishev@gmail.com>
This commit is contained in:
sh83 2022-10-21 23:20:10 +03:00 committed by Eric Callahan
parent 05b05afd3f
commit c1ae0b4f1e
4 changed files with 9 additions and 2 deletions

View File

@ -12,7 +12,7 @@
void
try_request_canboot(void)
{
uint32_t *bl_vectors = (uint32_t *)(CONFIG_FLASH_START & 0xFF000000);
uint32_t *bl_vectors = (uint32_t *)(CONFIG_BOOTLOADER_START);
uint64_t *req_sig = (uint64_t *)bl_vectors[0];
irq_disable();
*req_sig = REQUEST_CANBOOT;

View File

@ -57,6 +57,9 @@ config FLASH_START
hex
default 0x0000
config BOOTLOADER_START
hex
default 0x0000
######################################################################
# Bootloader

View File

@ -48,7 +48,7 @@ config DEPLOYER_START
hex
default 0x10004000
config RP2040_BOOTLOADER_START
config BOOTLOADER_START
hex
default 0x10000100

View File

@ -142,6 +142,10 @@ config FLASH_START
hex
default 0x8000000
config BOOTLOADER_START
hex
default 0x8000000
config FLASH_SIZE
hex
default 0x4000 if MACH_STM32F031