aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-12-14 18:44:07 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-12-14 18:44:07 -0500
commit9b342c65c8a038ff980645452ab84556376bedc7 (patch)
tree59b235f448ef979cfa650c4999ee57f970f00274 /src/stm32
parentdc94a357528013ae182e413c3d7ec6145450a075 (diff)
downloadkutter-9b342c65c8a038ff980645452ab84556376bedc7.tar.gz
kutter-9b342c65c8a038ff980645452ab84556376bedc7.tar.xz
kutter-9b342c65c8a038ff980645452ab84556376bedc7.zip
armcm_link: Rename CONFIG_FLASH_START to CONFIG_FLASH_APPLICATION_ADDRESS
Rename the build symbol name for better clarity on what it represents. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/Kconfig4
-rw-r--r--src/stm32/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 364fd9fb..83bf6449 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -248,7 +248,7 @@ choice
config STM32_FLASH_START_0000
bool "No bootloader"
endchoice
-config FLASH_START
+config FLASH_APPLICATION_ADDRESS
hex
default 0x8000800 if STM32_FLASH_START_800
default 0x8001000 if STM32_FLASH_START_1000
@@ -266,7 +266,7 @@ config FLASH_START
config ARMCM_RAM_VECTORTABLE
bool
- default y if MACH_STM32F0 && FLASH_START != 0x8000000
+ default y if MACH_STM32F0 && FLASH_APPLICATION_ADDRESS != 0x8000000
default n
diff --git a/src/stm32/Makefile b/src/stm32/Makefile
index 9642eabd..d9efd085 100644
--- a/src/stm32/Makefile
+++ b/src/stm32/Makefile
@@ -94,7 +94,7 @@ lib/hidflash/hid-flash:
flash: $(OUT)klipper.bin lib/hidflash/hid-flash
@echo " Flashing $< to $(FLASH_DEVICE)"
- $(Q)$(PYTHON) ./scripts/flash_usb.py -t $(CONFIG_MCU) -d "$(FLASH_DEVICE)" -s "$(CONFIG_FLASH_START)" $(if $(NOSUDO),--no-sudo) $(OUT)klipper.bin
+ $(Q)$(PYTHON) ./scripts/flash_usb.py -t $(CONFIG_MCU) -d "$(FLASH_DEVICE)" -s "$(CONFIG_FLASH_APPLICATION_ADDRESS)" $(if $(NOSUDO),--no-sudo) $(OUT)klipper.bin
serialflash: $(OUT)klipper.bin
@echo " Flashing $< to $(FLASH_DEVICE) via stm32flash"