mirror of
https://github.com/lucysrausch/hoverboard-firmware-hack.git
synced 2025-08-01 08:34:27 +02:00
ADD: make unlock and make flash to Makefile
This commit is contained in:
6
Makefile
6
Makefile
@@ -162,6 +162,12 @@ format:
|
||||
clean:
|
||||
-rm -fR .dep $(BUILD_DIR)
|
||||
|
||||
flash:
|
||||
st-flash --reset write $(BUILD_DIR)/$(TARGET).bin 0x8000000
|
||||
|
||||
unlock:
|
||||
openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c "reset halt" -c "stm32f1x unlock 0"
|
||||
|
||||
#######################################
|
||||
# dependencies
|
||||
#######################################
|
||||
|
Reference in New Issue
Block a user