Hi!
I did a search on the forum on this topic, in some cases it was successful, in others I didn't really understand the situation.
As sources of information I have these:
I wanted to give it a try, I built this circuit with AT90CAN128, the MCU is not new, it is unsoldered from a scrap board, but I still made this circuit to have easy access to the pins:
My programmer is this one [I do not know the HW/SW version]:
I also need to install a driver for it [using Zadig 2.8 and WinUSB 6.1 driver].
Connections (+ RESET, VCC and GND of course) for this AT90CAN128 (this is what I found):
| MCU | USB AVR |
|---|---|
| MOSI | MOSI |
| MISO | MISO |
| SCK | SCK |
| Reset | RST |
| VCC | VCC |
| GND | GND |
I have also used this USBasp successfully for other MCUs such as ATMega8 or ATMega32, following the same connections.
I installed Arduino IDE 1.0.6 [the only who recognizes this MCU], I can identify the [usbtinyisp]AT90CAN128 or [JTAG ICE mk1]AT90CAN128 boards. I tried the first option, I think it is the most compatible. Normally I make the selections:
- Programmer → USBasp
- Upload using programmer (not available in older versions of IDE, but you can use Ctrl+Shift+U)
That's what I did now, and after uploading a simple sketch that should continuously lights up an LED I get confirmation "Done uploading!" but also:
avrdude: error: coult not find USB device "USBasp" with vid=0x16c0 pid=0x5dc .
From what I've noticed, the digitalWrite(pin, HIGH) function causes a voltage on that pin (~3V in general, maybe I'm wrong) but on this board I measure ~0.5V on almost all pins, on some I have ~5V (from port F).
In the end, I also managed to set the fuses accordingly (for external 16MHz oscillator):
avrdude -c usbtiny -p at90can128 -U lfuse:w:0xFF:m
avrdude -c usbtiny -p at90can128 -U hfuse:w:0x19:m
avrdude -c usbtiny -p at90can128 -U efuse:w:0xFF:m
So despite the message returned in the Arduino IDE, it seems that the MCU is not flashed.
What ideas could you give me? Is another programmer board needed? Although, as I said, if I keep everything the same, I have no problems for another MCU. Could there be a discrepancy between the Arduino IDE version and USBasp?
I have to say that I don't know much, nothing else came to mind at the moment.
Thank you!








