more docs for examples

This commit is contained in:
R
2024-04-23 16:37:23 +01:00
parent c99c3cceab
commit e6282ce9a5
4 changed files with 17 additions and 0 deletions
+3
View File
@@ -14,7 +14,10 @@ main.elf: startup.o main.o
%.uf2: %.bin
~/code/uf2/utils/uf2conv.py -c -f 0x699b62ec -b 0x20000000 -o $@.temp $<
# This is a *terrible* hack
# (there isn't a flag for setting the "not main flash" bit)
xxd $@.temp | sed 's/5546 320a 5751 5d9e 0020 0000/5546 320a 5751 5d9e 0120 0000/g' | xxd -r >$@
rm $@.temp
%.bin: %.elf
$(OBJCOPY) -O binary $< $@
+1
View File
@@ -22,6 +22,7 @@ _start:
bltu a0, a1, 1b
2:
// NOTE: Vendor startup code does *NOT* call these functions
// Call preinit array functions
la s0, __preinit_array_start
la s1, __preinit_array_end