diff --git a/src/generic/armcm_reset.c b/src/generic/armcm_reset.c index 342b24e..e1fa553 100644 --- a/src/generic/armcm_reset.c +++ b/src/generic/armcm_reset.c @@ -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; diff --git a/src/lpc176x/Kconfig b/src/lpc176x/Kconfig index 76ca942..26a9323 100644 --- a/src/lpc176x/Kconfig +++ b/src/lpc176x/Kconfig @@ -57,6 +57,9 @@ config FLASH_START hex default 0x0000 +config BOOTLOADER_START + hex + default 0x0000 ###################################################################### # Bootloader diff --git a/src/rp2040/Kconfig b/src/rp2040/Kconfig index 6deae3d..fce01e2 100644 --- a/src/rp2040/Kconfig +++ b/src/rp2040/Kconfig @@ -48,7 +48,7 @@ config DEPLOYER_START hex default 0x10004000 -config RP2040_BOOTLOADER_START +config BOOTLOADER_START hex default 0x10000100 diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index 2f4fb8c..02a9c24 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -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