I have a brand new SMD ATTiny2313-20su for my project. but after I soldered everything and started to push sketch to it then the arduino said "Yikes! Invalid device signature."
I tried both 2313 @ 1MHZ and 8MHZ but not success. What can I do now?
The error returned is usually due to wiring issues (And missing bypass caps too, sometimes).
If your wiring is at fault or you have a load connected to the SPI pins... There is no programmer made that will fix that first.. I've Never had an issue programming a Tiny2213 but I use a board with all the Tiny sockets and a 328 all wired to the SPI buss and generally the Adafruit version of the Arduino as the ISP sketch for all my tiny programming. The part is ATPA-PCB and can be found on insidegadgets.com. It comes with both 6 and 10 pin ISP connectors, a choice of crystal or resonator and all the required bypass caps... It's also pretty bullet proof.
Invalid device signature!! is the complete msg.
im using arduino uno r3.
im just thinking it should be fuse issue and if smd / thoughole have different.one more time, use 20pu has no issue
moreover, i tried avr dragon to connect both pu and su 2313. for pu, i can connect the chip but su cannot. i had also tried my only 12mhz crystal with two 22pf cap to ground also not success
for 20pu i would had programmed the chip with chip base so i can remove it freely. but i just wanted to.minimize my board so i soldered everything then tried. please anyone give comment or i had really wasted my time for the pcb and stuffs.
I know this is an old post but I can help other sufferers with my comments.
After testing with a USBasp recorder, an Arduino Uno and an Arduino Mega 2650. After connecting in a thousand ways everything, to try with the Arduino IDE, with AVRDUDESS or directly with AVRDUDE ... After clock errors, of not recognizing the chip model, or invalid signature ... The problem is that the chip comes from the factory with the fuses indicating that the clock is external. So, until I have put a 12 MHz crystal with two ceramic capacitors of 22pF to the negative, I have not gotten it to work.
From there, with Arduino Mega 2650 as ISP, I've finally been able to record something on the chip
Araneoj:
I know this is an old post but I can help other sufferers with my comments.
After testing with a USBasp recorder, an Arduino Uno and an Arduino Mega 2650. After connecting in a thousand ways everything, to try with the Arduino IDE, with AVRDUDESS or directly with AVRDUDE ... After clock errors, of not recognizing the chip model, or invalid signature ... The problem is that the chip comes from the factory with the fuses indicating that the clock is external. So, until I have put a 12 MHz crystal with two ceramic capacitors of 22pF to the negative, I have not gotten it to work.
From there, with Arduino Mega 2650 as ISP, I've finally been able to record something on the chip
No, it does not come with the clock set to external. All AVRs, if they have not been used previously, come out of the factory at 1MHz (8MHz internal with CKDIV8 set to start up with prescale of 8). It is possible that you previously set it to this, or someone else did before you got the chip (if you're getting them like this from a vendor, you're getting used chips, and you should probably find a new supplier)