mirror of
https://github.com/andreili/katapult.git
synced 2025-08-23 19:34:06 +02:00
reset: fixed rp2040 bootloader entry point
Signed-off-by: Alex Malishev <malishev@gmail.com>
This commit is contained in:
parent
05b05afd3f
commit
c1ae0b4f1e
@ -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;
|
||||
|
@ -57,6 +57,9 @@ config FLASH_START
|
||||
hex
|
||||
default 0x0000
|
||||
|
||||
config BOOTLOADER_START
|
||||
hex
|
||||
default 0x0000
|
||||
|
||||
######################################################################
|
||||
# Bootloader
|
||||
|
@ -48,7 +48,7 @@ config DEPLOYER_START
|
||||
hex
|
||||
default 0x10004000
|
||||
|
||||
config RP2040_BOOTLOADER_START
|
||||
config BOOTLOADER_START
|
||||
hex
|
||||
default 0x10000100
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user