From f9cd240fb4e1e552dcc3584ce3edb2ed4a76bccf Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 15 Dec 2022 15:26:58 -0500 Subject: [PATCH] armcm_deployer: Rename DEPLOYER_START symbol to FLASH_APPLICATION_ADDRESS Rename the symbol to be more similar to the symbol used in the upstream Klipper code. Signed-off-by: Kevin O'Connor --- src/Kconfig | 2 +- src/generic/armcm_deployer.lds.S | 6 +++--- src/lpc176x/Kconfig | 2 +- src/rp2040/Kconfig | 4 ++-- src/stm32/Kconfig | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Kconfig b/src/Kconfig index d7aa97b..0912ff9 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -104,7 +104,7 @@ config STATUS_LED_PIN config BUILD_DEPLOYER bool - default y if DEPLOYER_START != 0 + default y if FLASH_APPLICATION_ADDRESS != FLASH_BOOT_ADDRESS default n # The HAVE_x options allow boards to disable support for some commands diff --git a/src/generic/armcm_deployer.lds.S b/src/generic/armcm_deployer.lds.S index 0361e37..1638243 100644 --- a/src/generic/armcm_deployer.lds.S +++ b/src/generic/armcm_deployer.lds.S @@ -11,7 +11,7 @@ OUTPUT_ARCH(arm) MEMORY { - rom (rx) : ORIGIN = CONFIG_DEPLOYER_START , LENGTH = CONFIG_FLASH_SIZE + rom (rx) : ORIGIN = CONFIG_FLASH_APPLICATION_ADDRESS , LENGTH = CONFIG_FLASH_SIZE ram (rwx) : ORIGIN = CONFIG_RAM_START , LENGTH = CONFIG_RAM_SIZE } @@ -22,8 +22,8 @@ SECTIONS _text_vectortable_start = .; KEEP(*(.vector_table)) _text_vectortable_end = .; -#if CONFIG_LAUNCH_APP_ADDRESS > CONFIG_DEPLOYER_START - . = CONFIG_LAUNCH_APP_ADDRESS - CONFIG_DEPLOYER_START ; +#if CONFIG_LAUNCH_APP_ADDRESS > CONFIG_FLASH_APPLICATION_ADDRESS + . = CONFIG_LAUNCH_APP_ADDRESS - CONFIG_FLASH_APPLICATION_ADDRESS ; #endif *(.text .text.*) *(.rodata .rodata*) diff --git a/src/lpc176x/Kconfig b/src/lpc176x/Kconfig index 85d20e5..83372a5 100644 --- a/src/lpc176x/Kconfig +++ b/src/lpc176x/Kconfig @@ -72,7 +72,7 @@ choice config LPC176X_FLASH_START_4000 bool "16KiB bootloader" endchoice -config DEPLOYER_START +config FLASH_APPLICATION_ADDRESS hex default 0x4000 if LPC176X_FLASH_START_4000 default 0 diff --git a/src/rp2040/Kconfig b/src/rp2040/Kconfig index c2baee7..748f9e5 100644 --- a/src/rp2040/Kconfig +++ b/src/rp2040/Kconfig @@ -94,10 +94,10 @@ choice config RP2040_FLASH_START_4000 bool "16KiB bootloader" endchoice -config DEPLOYER_START +config FLASH_APPLICATION_ADDRESS hex default 0x10004000 if RP2040_FLASH_START_4000 - default 0 + default 0x10000100 ###################################################################### # Communication inteface diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index 7f2c683..9308386 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -226,7 +226,7 @@ choice config STM32_FLASH_START_20000 bool "128KiB bootloader (SKR SE BX v2.0)" if MACH_STM32H743 endchoice -config DEPLOYER_START +config FLASH_APPLICATION_ADDRESS hex default 0x8000800 if STM32_FLASH_START_800 default 0x8001000 if STM32_FLASH_START_1000 @@ -240,11 +240,11 @@ config DEPLOYER_START default 0x8010000 if STM32_FLASH_START_10000 default 0x8020000 if STM32_FLASH_START_20000 default 0x8020200 if STM32_FLASH_START_20200 - default 0 + default 0x8000000 config ARMCM_RAM_VECTORTABLE bool - default y if MACH_STM32F0 && DEPLOYER_START != 0 + default y if MACH_STM32F0 && FLASH_APPLICATION_ADDRESS != 0x8000000 default n