Skip to content

Commit f7a3709

Browse files
committed
Add CRC to the boot sector. Use .bin for remote flashing
1 parent 66a077c commit f7a3709

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

step-7-webserver/pico-w5500/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test: update
3636
grep 'Ethernet: up' /tmp/output.txt
3737

3838
update: build
39-
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/ota?uf2=1 --data-binary @firmware.uf2
39+
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/ota --data-binary @firmware.bin
4040

4141
clean:
4242
$(RM) firmware.* bin2uf2

step-7-webserver/pico-w5500/link.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ SECTIONS {
1212

1313
.boot : ALIGN(4) {
1414
KEEP(*(.boot))
15+
. = 256 - 4;
16+
LONG(0xcccccccc) /* RP2040 expects CRC in the last 4 bytes of this block */
1517
} > boot
1618

1719
.text : ALIGN(4) {

0 commit comments

Comments
 (0)