Hello fellow hackers.
Questions:
0 - did I blow up the oscillator?
1 - did I blow up a fuse (anyway a fuse could not be causing these issues right)?
2 - a blown capacitor could be causing clock speed issues?
3 - throw it out? I am willing to replace any SMD component by hand!
4 - what can make the programmer not respond anymore?
If you're a arduino or avr-ninja, I challenge you to this one:
0 - I have an official made-in-Italia Arduino Uno R3 with removable ATMEGA. Socket 28 DIP. Also got myself a bunch of ATMEGAs. I also have a chinese knock-off uno with the SMD ATMEGA which obviously cannot be replaced.
1 - while programming a batch of 5 ATMEGA328P-PU for installing on custom perfboard projects, I made a mistake at one point and placed a chip reversed on the socket. I didn't freak out at first. But when I realised that I could no longer program the chips, I got pissed.
2 - The program that I was trying to flash on the chips has something to do with the SLEEP functions, WTD watchdog timer, etc... kind of low-level because it operates at register level. If I remember correctly, basically puts the board into hibernation for 8 or 9 seconds and when it wakes up it goes over the loop() function only once checking for an analog signal, and sleeps again. I might have uploaded some code that fiddled with the clock speeds too. But I'm not sure about what could be on this board's program right now... (I don't know if the programs stay only on the ATMEGA chips or anywhere else on the UNO board [although I would assume chip-only])
3 - I use windows7x64 and linux and am quite experienced with these environments. I believe I can debug a lot on my own, but here I'm really stumped. Let's go through a list of facts and you tell me if there's something I forgot to check:
3.1 - when I plug the unor3 board without any ATMEGA chip on it, the computers recognize it as an arduino uno USB device and the proper serial-COM port is created. I guess that the FTDI is intact.
3.2 - ArduinoIDE is able to detect the board too, both on windows and linux
3.3 - when plugged in, the ON led and the "L" led stay on, never switch off.
3.4 - when I do the above WITH an ATMEGA on the board, same results happen.
3.5 - I used the chinese knock-off to program some chips by using the chinese as an ISP, and this worked out fine. I was able to test my perfboards and it worked. But now as I'm writing from windows, this doesn't work anymore!!! What the heck...... >:-(
3.6 - I have the good habit of writing my setup() function so that it blinks LED 13 about 10 times really quickly before it finishes. This is a way I can be sure visually that my chip is starting up properly if I reset it or power is lost. Interestingly the ATMEGAs that I managed to program with the chinese-as-isp DO blink when I put them on the unor3 board and power-on. However they blink EXTREMELY EXTREMELY slowly, like the clock of the unor3 board is 1/10 of what it should be.
3.7 - I've tried and failed to reupload a bootloader, but I don't think this is the issue since it sits on the ATMEGA right? My problem seems to be with the board really.
Cheers!