flashing firmware with avrdude on stock CPU (ATmega162)

Discuss mods, hacks, tweaks, etc.

Moderators: altitude, adafruit_support_bill, adafruit, phono, hamburgers

Please be positive and constructive with your questions and comments.
Locked
User avatar
djsf
 
Posts: 4
Joined: Mon Jan 21, 2019 4:51 am

flashing firmware with avrdude on stock CPU (ATmega162)

Post by djsf »

Official ways to upload a firmware are:
* JAvrProg (Last Update: 2013-03-22) - refused to work with librxtx-java on Debian Stretch
* c0ntr0l - uses obsolete GUI framework, requires patching. The control mode itself works fine, but "Upload firmware" feature hangs.

There are numerous c0ntr0l forks/patches - didn't try any of them - since there's AVRDUDE software which works everywhere and supports (nearly) everything.

x0xb0x bootloader is limited in size (254 of 256 available words) and uses simplified AVR910 protocol. Original AVR910 supports reading/setting fuses via "New Universal Command" i.e. sending serial programming commands to programmed MCU's SPI bus via proxy MCU. x0xb0x bootloader doesn't support fuse setting but does support hfuse/lfuse reading via special commands. So it's trivial to hack avrdude to work with it.

Here it is: https://github.com/djsfcom/avrdude
Check the README.md file for the list of supported features, limitations and usage example. (No precompiled binaries)

Locked
Please be positive and constructive with your questions and comments.

Return to “x0xm0dz”