I did a telemetry prototype PCB for an airmodel, and later introduce some additional features with some extra wiring. Wrote the code and everything was working without problems. To finalize the project I decided to make a new PCB to include the additional features. Basically I used the same schematic, just include 4 more ADC lines, change the regulator type, so, the PCB layout didn't change too much.
The MCU I am using is the ATmega644P.
AVR Studio version is 4.18.700
After installing all the components and connected the JTAG lines from MCU to JTAGICE mk-II. Open the AVR Studio and setup the fuses open and load the project, press the "Build and Run" got the "Build succeeded with 0 Warnings...", we can see the green horizontal bar moving indicating the program is loading and the program starts running immediately.It didn't stop at the "int main(void)".
The green LED on the JTAGICE mk-II was flashing, like the program is runing but the hardware wasn't responding.
I inserted a breakpoint but it doesn't work, reset also do not work. If I press the single step it starts running with the green LED flashing.
I suspected of a bad Crystal and replaced it but didn't make any difference. I removed the Crystal and it didn't change the behaviour, the LED continues flashing like the program was running and for the AVR studio it is transparent (crystal or no crystal).
If I disconnect the target power the green LED on the
JTAGICE mk-II stops blinking but no error msg from the AVR Studio.
I already reinstalled the AVR Studio but the behavior is the same.
Any help is appreciated.