mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion] LD configuration: change RAM spliting between bench and flasher to
give more space to flasher
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* Config file for a ram binary linked at address 0x20008000, up to 0x20032000.
|
||||
/* Config file for a ram binary linked at address 0x20008000, up to 0x20030000.
|
||||
* This is used to build benchRAM. In what is left of the device's RAM, we might
|
||||
* put a flasher. */
|
||||
|
||||
CONFIG_OFFSET = 0x0;
|
||||
CONFIG_LENGTH = 200K - 32K;
|
||||
CONFIG_LENGTH = 192K - 32K;
|
||||
@@ -1,6 +1,6 @@
|
||||
/* Config file for a ram binary linked at address 0x20032000, taking all the RAM
|
||||
* space available. It is used to build flasher that can write both in flash and
|
||||
* in RAM up to the address 0x20032000. */
|
||||
* in RAM up to the address 0x20030000. */
|
||||
|
||||
CONFIG_OFFSET = 200K - 32K;
|
||||
CONFIG_LENGTH = 256K - 200K;
|
||||
CONFIG_OFFSET = 192K - 32K;
|
||||
CONFIG_LENGTH = 256K - 192K;
|
||||
@@ -55,7 +55,7 @@ openocd:
|
||||
ifeq ($(EPSILON_USB_DFU_XIP)$(EPSILON_DEVICE_BENCH),10)
|
||||
$(BUILD_DIR)/ion/src/$(PLATFORM)/shared/usb/flasher.o: SFLAGS += $(ION_DEVICE_SFLAGS)
|
||||
$(BUILD_DIR)/flasher.$(EXE): LDSCRIPT = ion/src/$(PLATFORM)/shared/ram.ld
|
||||
$(BUILD_DIR)/flasher.$(EXE): LDFLAGS += -Wl,ion/src/$(PLATFORM)/shared/ramConfig20032000.ld
|
||||
$(BUILD_DIR)/flasher.$(EXE): LDFLAGS += -Wl,ion/src/$(PLATFORM)/shared/ramConfig20030000.ld
|
||||
$(BUILD_DIR)/flasher.$(EXE): $(objs) $(BUILD_DIR)/ion/src/$(PLATFORM)/shared/usb/flasher.o
|
||||
else
|
||||
$(BUILD_DIR)/flasher.$(EXE):
|
||||
@@ -65,7 +65,7 @@ endif
|
||||
#TODO Do not build all apps... Put elsewhere?
|
||||
ifeq ($(EPSILON_USB_DFU_XIP)$(EPSILON_DEVICE_BENCH),11)
|
||||
$(BUILD_DIR)/benchRAM.$(EXE): LDSCRIPT = ion/src/$(PLATFORM)/shared/ram.ld
|
||||
$(BUILD_DIR)/benchRAM.$(EXE): LDFLAGS += -Wl,ion/src/$(PLATFORM)/shared/ramConfig20008000-20032000.ld
|
||||
$(BUILD_DIR)/benchRAM.$(EXE): LDFLAGS += -Wl,ion/src/$(PLATFORM)/shared/ramConfig20008000-20030000.ld
|
||||
$(BUILD_DIR)/benchRAM.$(EXE): $(objs) $(call object_for,$(bench_src))
|
||||
else
|
||||
$(BUILD_DIR)/benchRAM.$(EXE):
|
||||
|
||||
Reference in New Issue
Block a user