only:extracting reusable script

This commit is contained in:
Andrey 2023-07-04 10:04:03 -04:00
parent 22fe75745a
commit 8f517c22e8
1 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,9 @@ set -e
# for instance
#
# .github/workflows/hw-ci/ ../.github/workflows/openocd_ci_f4_discovery.cfg
# .github/workflows/hw-ci/ ../.github/workflows/openocd_ci_proteus.cfg
# .github/workflows/hw-ci/openocd_wipe_and_flash.sh ../.github/workflows/openocd_ci_f4_discovery.cfg
# .github/workflows/hw-ci/openocd_wipe_and_flash.sh ../.github/workflows/openocd_ci_proteus.cfg
cd firmware
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"