reset: fixed rp2040 bootloader entry point

Signed-off-by: Alex Malishev <malishev@gmail.com>
This commit is contained in:
sh83 authored and Eric Callahan committed 2022-10-31 07:23:14 -04:00
1 parent 05b05afd3f
commit c1ae0b4f1e
4 files changed
+9 -2

No files matched your search

+1 -1
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;
+3
View File
@@ -57,6 +57,9 @@ config FLASH_START
hex
default 0x0000
config BOOTLOADER_START
hex
default 0x0000
######################################################################
# Bootloader
+1 -1
View File
@@ -48,7 +48,7 @@ config DEPLOYER_START
hex
default 0x10004000
config RP2040_BOOTLOADER_START
config BOOTLOADER_START
hex
default 0x10000100
+4
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