I have a weird problem with an Atmega 8 TQFP. The chip is soldered to a Home made Dev board and it worked well the first day. I uploaded a simple LED blink program to test the functionality and it worked well. The programming was done via ATMEL studio 6 and AVR DUDE, the programmer used was STK500. The next day I tried a more complex program which drives 8 LEDs on PortD. ATMEL studio did recognise the Chip and it transferred the code successfully, so all that was missing was to remove the programmer and attach my LEDS.
Here's the weird part, the 1st time it ran the LEDs illuminated but not in the order I programmed it and after a while it stopped blinking altogether. I noticed the 1st LED shining dimmer than it did on the first run and the others did not light at all.
I then removed the LEDs and hooked up my programmer again to verify if the chip is still alive, it was Alive and I then Uploaded the Simple Single LED blinker code again to test.
The code successfully transferred but the LED would not blink but briefly flash at random Moments. So I guess the chip is alive but not well. The Programmers still recognise it and can program it but it does not Drive my outputs.
Question: What could have gone wrong with the Chip ? All my connections are perfect and my Power is at a fixed Healthy 5v which is adequate.
Is my chip destroyed or is there another element at play ? Please help. Thanks.