MarkR42 / malenki-nano

Speed controller and receiver for small robots
Other
37 stars 9 forks source link

Should I update the firmware? #6

Open getsetbro opened 1 year ago

getsetbro commented 1 year ago

I would like to update the firmware to your latest. Are there instructions on how to do it?

MarkR42 commented 1 year ago

no, there are not.

Basically

  1. Check that you have the attiny1616 version of the board - it should have 20-way QFN IC with "t1616" written in very tiny letters on.
  2. You will need a serial-usb dongle, and a soic-8 test clip. The test-clip will need to be modified as described here: https://github.com/SimonMerrett/SOICbite/blob/master/HOWTO_mod_clip.md
  3. Make a cable connecting the serial usb dongle to the soic8 test clip, with three pins connected with pinout: 1 +5v, 3 GND, 6 - UPDI. UDPI needs to be connected through a 4.7k resistor to TX, and directly to RX. See https://github.com/microchip-pic-avr-tools/pymcuprog for the ascii diagram of this
  4. Obtain the Python program "pymcuprog" from https://github.com/microchip-pic-avr-tools/pymcuprog and get it working on your system
  5. The firmware files are in this repository, in /flashcmd directory. There is an example script flash.sh which shows some command-line options which can be used. Make sure you erase the chip to remove the old firmware before flashing. Alternatively you can build the firmware from source, there are some instructions for doing that in the repository.

I plan to write a better instruction later. It's not generally intended for end-user flashing.