I'm trying to use AVRDUDE to upload a hex file to an ATMega1284.
The programmer I'm using is a CP210x.
The chip already has a bootloader and, if I select USBASP as the programmer, then I can upload files to it using the Arduino IDE.
However, in AVRDUDE, if I select USBASP as the programmer, it says it can't find a USB device with vid=0x16c0 pid=0x5dc.
vid for the CP210x is 10C4, pid is EA60.
I tried changing the definition for usbasp in avrdude.conf to match the CP210x vid and pid however this didn't work.
I suspect this is because USBASP uses an SPI itnerface, whereas the CP210x uses a UART interface. Strange that it works in the Arduino IDE though?
Could anybody tell me what would be the correct programmer to use in AVRDUDE, or how I can get this programmer to work in AVRDUDE?