Move code within flash to allow bootloader

This commit is contained in:
fruchti 2021-04-04 20:27:18 +02:00
parent 14d77a77df
commit ed2925a961
3 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
319 321

View file

@ -1,6 +1,6 @@
MEMORY MEMORY
{ {
flash (rx) : ORIGIN = 0x08000000, LENGTH = 64K flash (rx) : ORIGIN = 0x08000800, LENGTH = 62K
sram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K sram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
} }

View file

@ -111,7 +111,7 @@ incrementalbuild: $(BUILD_TARGETS)
.PHONY: program .PHONY: program
program: $(BUILD_DIR)/$(PROJECT).bin program: $(BUILD_DIR)/$(PROJECT).bin
@#if ps -e | grep openocd ; then arm-none-eabi-gdb -batch -x flash.gdb ; else st-flash --reset write $(BUILD_DIR)/$(PROJECT).bin 0x8000000 ; fi @#if ps -e | grep openocd ; then arm-none-eabi-gdb -batch -x flash.gdb ; else st-flash --reset write $(BUILD_DIR)/$(PROJECT).bin 0x8000000 ; fi
st-flash --reset write $(BUILD_DIR)/$(PROJECT).bin 0x08000000 st-flash --reset write $(BUILD_DIR)/$(PROJECT).bin 0x08000800
.PHONY: clean .PHONY: clean
clean: clean: