make target to flash firmware via bootloader

This commit is contained in:
Nicolas Stalder 2019-03-23 13:54:04 +01:00
parent d3b5fb68ee
commit 98a209e330

View File

@ -93,6 +93,11 @@ flashboot: solo.hex bootloader.hex
STM32_Programmer_CLI -c port=SWD -halt -e all --readunprotect STM32_Programmer_CLI -c port=SWD -halt -e all --readunprotect
STM32_Programmer_CLI -c port=SWD -halt -d bootloader.hex -rst STM32_Programmer_CLI -c port=SWD -halt -d bootloader.hex -rst
flash-firmware:
arm-none-eabi-size -A solo.elf
solo program aux enter-bootloader
solo program bootloader solo.hex
# tell ST DFU to enter application # tell ST DFU to enter application
detach: detach:
STM32_Programmer_CLI -c port=usb1 -ob nBOOT0=1 STM32_Programmer_CLI -c port=usb1 -ob nBOOT0=1