Merge pull request #443 from DrDoof/build/xram-size

Makefile: let the linker check external RAM against 0xBFFF
This commit is contained in:
feelfree69 authored and GitHub committed 2026-09-22 20:50:59 +02:00
commit fa93340c24
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ $(BUILDDIR)/%.rel: %.asm | create_build_dir
# mv -f $(addprefix $(basename $^), .lst .rel .sym) .
$(BUILDDIR)/rtlplayground.ihx: $(OBJS) $(BUILDDIR)/crtbank.rel $(BUILDDIR)/crc16.rel
$(CC) $(CC_FLAGS) -Wl-bHOME=0x00000 -Wl-bBANK1=0x14000 -Wl-bBANK2=0x24000 -Wl-bBANK3=0x34000 -Wl-r -o $@ $^
$(CC) $(CC_FLAGS) --xram-size 49151 -Wl-bHOME=0x00000 -Wl-bBANK1=0x14000 -Wl-bBANK2=0x24000 -Wl-bBANK3=0x34000 -Wl-r -o $@ $^
$(BUILDDIR)/rtlplayground.img: $(BUILDDIR)/rtlplayground.ihx
objcopy --input-target=ihex -O binary $< $@