diff --git a/.github/workflows/hw-ci/openocd_wipe_and_flash.sh b/.github/workflows/hw-ci/openocd_wipe_and_flash.sh index 48c48c06c3..208c84ba68 100755 --- a/.github/workflows/hw-ci/openocd_wipe_and_flash.sh +++ b/.github/workflows/hw-ci/openocd_wipe_and_flash.sh @@ -13,4 +13,4 @@ set -e cd firmware # works on F4 with ST-LINK/V3 does not seem to work using V2 :( -openocd -f "$HW_SCRIPT" -c init -c targets -c "reset halt" -c "flash erase_sector 0 0 11" -c "flash write_image "deliver/rusefi.bin" 0x08000000" -c "reset run" -c "shutdown" \ No newline at end of file +openocd -f "$HW_SCRIPT" -c init -c targets -c "reset halt" -c "flash erase_sector 0 0 last" -c "flash write_image "deliver/rusefi.bin" 0x08000000" -c "reset run" -c "shutdown" \ No newline at end of file