mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
build: add a target for flashing via st-flash.
This makes developing against Discovery boards easier. Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
parent
7af3d57606
commit
f792ffa2e6
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -658,6 +658,11 @@ flash_$(TARGET): $(TARGET_HEX)
|
|||
|
||||
flash: flash_$(TARGET)
|
||||
|
||||
st-flash_$(TARGET): $(TARGET_BIN)
|
||||
st-flash --reset write $< 0x08000000
|
||||
|
||||
st-flash: st-flash_$(TARGET)
|
||||
|
||||
binary: $(TARGET_BIN)
|
||||
|
||||
unbrick_$(TARGET): $(TARGET_HEX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue