check for stlink with lsusb (#3055)

* s

* s
This commit is contained in:
Matthew Kennedy 2021-07-24 13:23:32 -07:00 committed by GitHub
parent a4113f7ccc
commit 86fe2d96ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ jobs:
working-directory: ./firmware
run: make -j6 EXTRA_PARAMS="-DHARDWARE_CI" PROJECT_BOARD=${{matrix.board}}
- name: Check for STLINK
run: lsusb | grep STLINK
- name: OpenOCD wipe & flash STM32
working-directory: ./firmware
run: openocd -f "interface/stlink.cfg" -f "target/stm32f4x.cfg" -c init -c targets -c "reset halt" -c "flash erase_sector 0 0 11" -c "flash write_image "build/rusefi.bin" 0x08000000" -c "reset run" -c "shutdown"