AVR Bootloader for MK-FlightCtrl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Olaf Rempel 125bdc1729 reduce sizae and compat work 11 years ago
.gitignore reduce sizae and compat work 11 years ago
Makefile reduce sizae and compat work 11 years ago
README reduce sizae and compat work 11 years ago
main.c reduce sizae and compat work 11 years ago

README

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