diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | cmd/sbc_harness/fs_harness_flash_bin.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -56,7 +56,7 @@ There are several ways of putting this firmware file onto the harness: If OpenOCD is not already running: ``` - openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "program $PWD/build/rp2040-Debug/cmd/sbc_harness/sbc_harness.elf reset exit"` + openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c 'adapter speed 5000' -c "program $PWD/build/rp2040-Debug/cmd/sbc_harness/sbc_harness.elf reset exit" ``` If OpenOCD is already running: diff --git a/cmd/sbc_harness/fs_harness_flash_bin.c b/cmd/sbc_harness/fs_harness_flash_bin.c index 8eebe9e..9a5bb2f 100644 --- a/cmd/sbc_harness/fs_harness_flash_bin.c +++ b/cmd/sbc_harness/fs_harness_flash_bin.c @@ -121,7 +121,7 @@ static void ab_flash_write_sector(size_t pos, uint8_t *dat) { pos += DATA_HSIZE; - log_infoln("write flash sector @ %zu...", pos); + log_infoln("write flash sector @ ", (base16_u32_, pos), "..."); if (memcmp(dat, DATA_START+pos, FLASH_SECTOR_SIZE) != 0) { bool saved = cr_save_and_disable_interrupts(); flash_range_erase(pos, FLASH_SECTOR_SIZE); |