more docs for examples
This commit is contained in:
@@ -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 $< $@
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user