fix booting ram, commit to new size

This commit is contained in:
R
2024-04-14 18:29:09 +01:00
parent b490e6917d
commit ef659206e2
8 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ all: main.uf2
main.elf: startup.o main.o
%.uf2: %.bin
~/code/uf2/utils/uf2conv.py -c -f 0xdeadbeef -b 0x08002000 -o $@ $<
~/code/uf2/utils/uf2conv.py -c -f 0xdeadbeef -b 0x08001000 -o $@ $<
%.bin: %.elf
$(OBJCOPY) -O binary $< $@
@@ -29,4 +29,4 @@ main.elf: startup.o main.o
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o *.elf *.map *.dump
rm -f *.o *.elf *.map *.dump *.uf2
+1 -1
View File
@@ -7,7 +7,7 @@ MEMORY
{
/* CH32V20x_D6 -> 10 KB SRAM */
/* allow full flash (incl. non-zero-wait) */
FLASH (rx) : ORIGIN = 0x00002000, LENGTH = (224K - 8K)
FLASH (rx) : ORIGIN = 0x00001000, LENGTH = (224K - 4K)
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10K
}