I am using ATXMEGA16E5 in a application. And i use the RTC clock ( period 1 sec , external 32.768 clock) to wakeup from power save mode.
After wake up i measure some ADC channels and after goes to power save mode.
The program works well when no debugging.
When i use the AtmelICE and i push HALT it does not stops, and IAR gives a error "Fatal error : Failed to attach to target with PDI interface" and the debug stops!!!!!! So i can not make debug!!!!
The same happens at the example of IAR "rtc_example" of ATxmega32E5!! Even when i used the aplication Note AVR1314 the same problem!!!
if I use the mcu ATxmega64B3 it works well!!.
This is crasy. Does anyone face the same problem? or have a solution?
I tried to use a new mcu insteed of atmega88 but i am faceing "newborn" problems. Also ASF is not a proffesional framework it is just a collection of function.
I am using atmel more 15 years and i did not had a any serious problem with atmega. Maybe Atxmega was release too early.