Hi everyone, hope you are well. I wanted to add to the topic of uploading code onto an ATTiny1616. The methods I tried and the one which worked.
-
Why did I opt for ATTiny 1616, mainly because I was working on a very small PCB and the QFN package was the most suitable. Plus I wanted to upload code using the Arduino IDE.
-
so to start I tried different methods as mentioned in the SerialUPDI guide: AVR-Guidance/UPDI/jtag2updi.md at master · SpenceKonde/AVR-Guidance · GitHub
-
My first attempt was using the Jtag2updi to upload the program using a UNO or a NANO. It might work for you, but for me, it was a headache. Anyway, it is not the recommended method.
(if you are using the jatg2updi make sure u have a 10uF resistor between the reset and the gnd of the Arduino you are using as a programmer) -
Moving on I tried using the FTDI FT232RL. Again this did not work. The connections are simple. Have a Schottky diode (I used the IN5822) from TX to RX of FT232RL (Cathode connected to TX and Anode to RX). Connect the RX of the FT232RL pin with the UPDI pin having a 470-ohm resistor.
-
Lastly, Spence Kode in his guide says that the CH340 adapter works well. So I tried that. Because I did not have a standalone CH340 Serial adapter, I used the one on a NANO to program the Tiny 1616. The connections are simple, follow this picture I saved from another post.
make sure you remove/ desolder the RX and TX LEDs on the Nano. In the IDE select programmer to be Serial UPDI 57600 and upload the code, it works like a charm.
-
I will buy a standalone CH340 adapter as well and test that.
-
You can also refer to the complete schematics. I made a breakout board for this circuit as well. If required I will share those files as well.
I'll keep this thread updated as I test further.
have a good day!


