ADD: make unlock and make flash to Makefile

This commit is contained in:
Niklas Fauth
2018-04-25 19:27:15 +02:00
parent 4ac8b72fb0
commit 0172976057
4 changed files with 394 additions and 369 deletions

View File

@@ -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
#######################################