A piece of code has been tested successfully on a STK600 equipped with the atmega2560 board provided with this kit.
- The program was both downloaded to the STK600's mcu and debugged using a JTAG debugger (AVR One).
- The clock settings of the STK600 were programmed to operate the mcu at 16MHz using the on-board oscillator.
- During this phase, it was possible to stop the execution everywhere in the program as expected with the JTAG debugger.
Now, a small prototype board has been equipped with an atmega16AU running at 16MHz.
- Its JTAG port (PF4-7), which is only dedicated to the debugger, is directly connected to a 10-pin header according to the Atmel's standard pinout.
- The same code is downloaded to this target with the same project settings (device, optimization etc) using the same AVR One.
If the program runs as before, the debugger however can not stop now the execution as before, for some breakpoints located in interruptions for instance or elsewhere where the code should be less sensitive to optimizations.
Many tests have been carried out without any success :
- Checked hardware;
- Replaced Avr One with Avr Dragon;
- "Clean/rebuild solution";
- Deleting all AS7 files;
- Removed all breakpoints;
- Changed optimizations of compiler;
- Created a new project in a new directory...
At this point any suggestions to restore my breakpoints are welcome.
Thanks a lot.
### Configuration ###
- Windows 10 Pro version1909 18363.628
- Atmel Studio 7 Version: 7.0.2397 -