MCU: ATtiny3216
Libraries: megaTinycore
Avrdude version: 6.3-20171130
Avrdude.config: Provided with megaTinycore project.
OS: Kali and 2020.4
OS Ubuntu 20LTS
OS: Windows 10 (latest Updates)
Programmer: megaTinycore UPDI programmer (jtaga2updi)
I have been struggling to get my ATtiny3216 project board programmed under Linux. It has been working perfectly for months using Windows and programs every time. I now need to program it from Linux but my programmer does not see the MCU when in Linux. I get the initialization failed, rc=-1 just as if the project board was not plugged in at all.
I then plugged my cable into my Windows machine and it programs no problem.
Next I plugged an Arduino Uno into my Linux machine, changed the parameters of avrdude and the UNO programmed completely fine.
I have tried programming my ATtiny3216 project board on one machine under Kali Linux and a different machine with Ubuntu Linux but they have the same results ... initialization failed, rc=-1
I have checked that libusb is installed and I believe it is and should be anyway as standard on Linux distros now.
I can do a ls /mnt/ttyUSB* and I can see my programmer on ttyUSB0 okay and when programming, avrdude does seem happy with the programmer but it just can't find the MCU connected to it (under Linux).
So to recap . . .
- Avrdude WILL program an Uno from the command line on both Linux machines.
- Avrdude will NOT program my ATtiny3216 project board from the command line and can't see the MCU on both Linux machines.
- Avrdude WILL program my ATtiny3216 project board under windows.
I have used the same commands under both Windows and Linux (apart from the port name)
THIS is a basic version of the Linux command I am using;
sudo avrdude -C./avrdude.conf -v -pattiny3216 -cjtag2updi -P/dev/ttyUSB0
The config file is being read correctly.
I am at a bit of a loss what to try next.