AVR Bootloader for MK-FlightCtrl
Go to file
2011-06-05 18:24:22 +02:00
.gitignore reduce sizae and compat work 2011-06-05 14:39:59 +02:00
main.c fix local flash erase 2011-06-05 18:24:22 +02:00
Makefile reduce sizae and compat work 2011-06-05 14:39:59 +02:00
README reduce sizae and compat work 2011-06-05 14:39:59 +02:00

1) Flash FC firmware:
# reset running firmware (MCU will execute bootloader only for ~1s!)
$ echo -e -n "#aR@S\r" > /dev/ttyUSB1

# flash new firmware
$ avrdude -p m644p -c butterfly -b 57600 -P /dev/ttyUSB1 -U flash:w:/tmp/Flight-Ctrl_MEGA644_V0_82a.hex


2) Flash BLMC firmware (via twiboot):
# enter bootloader (0x1B, 'S'), select first twi-slave ('1'):
$ echo -e -n "\x1BS1" > /dev/ttyUSB1

# flash new firmware
$ avrdude -p m8 -c butterfly -b 57600 -P /dev/ttyUSB1 -U flash:w:/tmp/blmc.hex

# select next twi-slave (bootloader is still active)
$ echo -e -n "2" > /dev/ttyUSB1


3) Other Commands:
'0'       => select FC internal flash/eeprom
'1' - '4' => select twi-slave 1-4, print bootloader version
'I'       => start application on selected twi-slave, print application version
'l'       => start selected motor
'k'       => stop selected motor