Set limits on SRAM usage

This commit is contained in:
Jeremy Soller 2020-09-15 12:28:13 -06:00 committed by Jeremy Soller
parent 582a5e2a97
commit fd0bbc53f4
3 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-3.0-only
CC=sdcc -mmcs51 --model-large --Werror
CC=sdcc -mmcs51 --model-large --xram-size $(SRAM_SIZE) --Werror
OBJ=$(patsubst src/%.c,$(BUILD)/%.rel,$(SRC))
# Run EC rom in simulator

View File

@ -1,3 +1,8 @@
# SPDX-License-Identifier: GPL-3.0-only
ARCH=8051
# SRAM is 6144 bytes, only 4096 bytes are mapped at address 0. Region at
# 0x0E00-0x1000 is used for AP communication. So this is brought down to 2048,
# which matches it8587e limits
SRAM_SIZE=2048

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: GPL-3.0-only
ARCH=8051
# SRAM is 4096 bytes, but SRAM at address 2048 is used for scratch ROM
SRAM_SIZE=2048