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.

12345678910111213141516171819202122232425
  1. 1) Flash FC firmware:
  2. # reset running firmware (MCU will execute bootloader only for ~1s!)
  3. $ echo -e -n "#aR@S\r" > /dev/ttyUSB1
  4. # flash new firmware
  5. $ avrdude -p m644p -c butterfly -b 57600 -P /dev/ttyUSB1 -U flash:w:/tmp/Flight-Ctrl_MEGA644_V0_82a.hex
  6. 2) Flash BLMC firmware (via twiboot):
  7. # enter bootloader (0x1B, 'S'), select first twi-slave ('1'):
  8. $ echo -e -n "\x1BS1" > /dev/ttyUSB1
  9. # flash new firmware
  10. $ avrdude -p m8 -c butterfly -b 57600 -P /dev/ttyUSB1 -U flash:w:/tmp/blmc.hex
  11. # select next twi-slave (bootloader is still active)
  12. $ echo -e -n "2" > /dev/ttyUSB1
  13. 3) Other Commands:
  14. '0' => select FC internal flash/eeprom
  15. '1' - '4' => select twi-slave 1-4, print bootloader version
  16. 'I' => start application on selected twi-slave, print application version
  17. 'l' => start selected motor
  18. 'k' => stop selected motor