Hi Im still waiting for my USBasp to arrive
so thought id have a go with my arduino in isp
but get this following error any idea why this would be ?
~/Downloads $ sudo avrdude -C avrdude.conf -P /dev/ttyUSB0 -c arduino -p t841
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: Expected signature for ATtiny841 is 1E 93 15
Double check chip, or use -F to override this check.
avrdude done. Thank you.
Greebo
(Greebo)
22 March 2021 21:57
2
1e950f is the device signature for an atmega328p, which is probably your arduino ISP.
This might also help you:
arduino, avr, avrdude
Went back to this today can flash blink code to an ATTiny 85 using Arduino IDE so rules out bad Arduino HW
My problems must be in config
Greebo
(Greebo)
25 March 2021 21:19
4
Was that using avrdude from the commandline, or using the Arduino IDE?
Greebo
(Greebo)
25 March 2021 21:25
5
I think your problem is with your stated avrdude command, you’re trying to use avrdude to program the Arduino (the -c arduino
in your commandline), and not use it as a programmer to program your ATTiny.
As per that link I shared, you need to tell avrdude the arduino is an ISP (assuming it is running the ArduinoISP sketch as you indicated) and you do that by using -c avrisp
.
I’ve sorted it I need to add " -b 19200 " to the command and it flashed fine
Another side issue was it was failing verification turns out not all Arduinos are born equal