rusefi/java_console/bin/flash_stlink.sh

10 lines
496 B
Bash
Raw Permalink Normal View History

2021-07-25 18:08:25 -07:00
#!/bin/bash
# sudo apt-get install stlink-tools -y
# sudo apt-get remove --purge stlink-tools
2021-07-25 18:12:54 -07:00
# armbian packages repo has 1.5 which does not seem to support ST-LINK 2.1 from newest discovery boards
# version 1.6.1 of https://github.com/stlink-org/stlink works!
# See https://freeelectron.ro/installing-st-link-v2-to-flash-stm32-targets-on-linux/
# master of https://github.com/stlink-org/stlink does not work https://github.com/stlink-org/stlink/issues/1165
2021-07-25 18:08:25 -07:00
st-flash write rusefi.bin 0x08000000