mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
stm32/Makefile: Add .gc.blocks.table section to generated binary.
The generated binary file was missing this section, which caused a hard fault when loading bin or dfu firmware (eg on ARDUINO_GIGA). Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
committed by
Damien George
parent
365329cd54
commit
c7ddf0c54f
@@ -611,7 +611,7 @@ TEXT0_ADDR ?= 0x08000000
|
||||
ifeq ($(TEXT1_ADDR),)
|
||||
# No TEXT1_ADDR given so put all firmware at TEXT0_ADDR location
|
||||
|
||||
TEXT0_SECTIONS ?= .isr_vector .isr_extratext .text .data .ARM
|
||||
TEXT0_SECTIONS ?= .isr_vector .isr_extratext .text .gc.blocks.table .data .ARM
|
||||
|
||||
deploy-stlink: $(BUILD)/firmware.bin
|
||||
$(call RUN_STLINK,$^,$(TEXT0_ADDR))
|
||||
@@ -629,7 +629,7 @@ else
|
||||
# TEXT0_ADDR and TEXT1_ADDR are specified so split firmware between these locations
|
||||
|
||||
TEXT0_SECTIONS ?= .isr_vector .isr_extratext
|
||||
TEXT1_SECTIONS ?= .text .data .ARM
|
||||
TEXT1_SECTIONS ?= .text .gc.blocks.table .data .ARM
|
||||
|
||||
deploy-stlink: $(BUILD)/firmware0.bin $(BUILD)/firmware1.bin
|
||||
$(call RUN_STLINK,$(word 1,$^),$(TEXT0_ADDR))
|
||||
|
||||
Reference in New Issue
Block a user