I am trying to program a AT32UC3A0512 using a JTAGICE3 and the Atmel Studio 6.2 beta. When I try to program through the JTAGICE3 i get the following error information:
Timestamp: 2014-03-04 10:10:45.999
ModuleName: TCF command: Modules:writeToMemory failed.
Failed to write segment at 0x80000000 to target for memorytype base
If I close Atmel Studio, power cycle my board, unplug and replug usb on my JTAGICE3, and restart Atmel studio I am able to program my device exactly once before I start getting the same error, which leads me to believe its not a fuse setting or jtag wiring issue. If I try to program my device multiple times the address in the error I pasted above will someimtes change. Also, even though I am not able to program the chip I can still erase it, and read the device inforamtion.
I was having the same problems with Atmel Studio 6.1 SP2 before I upgraded to the beta. I also tried Atmel Studio 5 with no luck.
I have tried downgrading the firmware on the JTAGICE3 as suggested in other threads.
Also When I try to enter to Debugging mode I get an error that says "Failed to launch program. Error: Saving to device failed."
Any thoughts on what might be causing this issue?