From 61caceb8618686e50d5f38eed4bc84296dab21af Mon Sep 17 00:00:00 2001 From: "timecop@gmail.com" Date: Wed, 29 May 2013 00:10:21 +0000 Subject: [PATCH] [PATCH 4/4] Make: unbrick target to flash w/ bootloader pins shortened git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@333 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 2e6f0eeed..8ed351bfa 100644 --- a/Makefile +++ b/Makefile @@ -202,6 +202,13 @@ flash_$(TARGET): $(TARGET_HEX) flash: flash_$(TARGET) + +unbrick_$(TARGET): $(TARGET_HEX) + stty -F $(SERIAL_DEVICE) raw speed 115200 -crtscts cs8 -parenb -cstopb -ixon + stm32flash -w $(TARGET_HEX) -v -g 0x0 -b 115200 $(SERIAL_DEVICE) + +unbrick: unbrick_$(TARGET) + help: @echo "" @echo "Makefile for the baseflight firmware"