Set limits on SRAM usage
This commit is contained in:
parent
582a5e2a97
commit
fd0bbc53f4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user