1
TinyLily / Re: Programming the tinylily directly via avrdude
« on: April 22, 2021, 06:59:58 PM »
This issue is solved with help from @lennevia (thanks!).
The avrdude command that in the end worked for me on the Ubuntu machine that I am using is as follows:
sudo avrdude -P /dev/ttyUSB0 -v -patmega328p -carduino -b57600 -D -Uflash:w:a.hex:i
First, the baudrate is important, 115200 does not work. Second, to get going I had soldered a programming header on the back pads of the tinylily so that I could program it with an SPI- based programmer. After success with that programmer I overwrote, as I usually do, the processor fuses with the settings that I need. This also reverted the prescaling of the system clock that is programmed into fuse settings by which the tinylilies are shipped. But changing the clock prescaling throws off the baudrate settings in the tinylily's bootloader. So be careful with changing the fuses.
Third, the linux port (/dev/ttyUSB0 in the command above) can be identified by the following shell command after plugging in the programmer cable: "dmesg | grep tty"
The avrdude command that in the end worked for me on the Ubuntu machine that I am using is as follows:
sudo avrdude -P /dev/ttyUSB0 -v -patmega328p -carduino -b57600 -D -Uflash:w:a.hex:i
First, the baudrate is important, 115200 does not work. Second, to get going I had soldered a programming header on the back pads of the tinylily so that I could program it with an SPI- based programmer. After success with that programmer I overwrote, as I usually do, the processor fuses with the settings that I need. This also reverted the prescaling of the system clock that is programmed into fuse settings by which the tinylilies are shipped. But changing the clock prescaling throws off the baudrate settings in the tinylily's bootloader. So be careful with changing the fuses.
Third, the linux port (/dev/ttyUSB0 in the command above) can be identified by the following shell command after plugging in the programmer cable: "dmesg | grep tty"