8051: Allow up to 64KB firmware images.
The ITE EC hardware always has the first 32KB of ram mapped, while a second 32KB of ram is banked immediately after. By default, the banked physical address immediately follows the fixed area in flash.
This commit is contained in:
committed by
Jeremy Soller
parent
99ef48f9c4
commit
ba5f1ab55c
@@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
CC=sdcc -mmcs51 --model-large --xram-size $(SRAM_SIZE) --Werror
|
||||
CC=sdcc -mmcs51 --model-large --code-size $(CODE_SIZE) --xram-size $(SRAM_SIZE) --Werror
|
||||
OBJ=$(patsubst src/%.c,$(BUILD)/%.rel,$(SRC))
|
||||
|
||||
# Run EC rom in simulator
|
||||
@@ -14,7 +14,7 @@ sim: $(BUILD)/ec.rom
|
||||
# Convert from Intel Hex file to binary file
|
||||
$(BUILD)/ec.rom: $(BUILD)/ec.ihx
|
||||
@mkdir -p $(@D)
|
||||
makebin -p < $< > $@
|
||||
makebin -s $(CODE_SIZE) -p < $< > $@
|
||||
|
||||
# Link object files into Intel Hex file
|
||||
$(BUILD)/ec.ihx: $(OBJ)
|
||||
|
Reference in New Issue
Block a user