Using JTAGICE3 with AS5. Both have latest updates. My target is mega328p on an Arduino Uno. I'm able to develop and download programs from AS5 after adding an External Tool button that launches avrdude.exe. That works reliably.
When I try to use the JTAGICE3 I'm running into 2 main problems:
1. Code images are not being written to the target even tho the "Writing" status message at the bottom is error-free. The AS5 app log shows no obvious error msgs either but it's a bunch of low-level debug info so who knows. After J write attempts, the target always executes the last image I loaded with avrdude.
2. Breakpoints, single step, and any other command/conditions fail to stop execution other than a manual pause or stop command via the AS5 UI. Once stopped watch and other debug features that have to peek at the target's memory work fine.
So I figure what's common between both issues is a lack of JTAGICE3's ability to write to the target's memory (i.e. target code images are not being written, and sw breakpoint instructions are apparently not being written)
Atmel support so far has not provided a solution but I'm still corresponding with them (at 2 days between responses it slooow going). They suggested I verify using -O1 optimization and -g2 debug levels (which I am using). They also suggested I verify several fuse and lockbits (below) if debugWIRE wasn't working at all but as far as I can see they are fine. I'm able to get into and out of debugWIRE mode fine.
LB and BLB0 = NO_LOCK.
BLB1 = LPM_SPM_DISABLE
BODLEVEL=2V7
SPIEN, EESAVE, BOOTRST=checked. BOOTSZ=256W_3F00
Fuse Register EXTENDED=0xFD, HIGH=0xD6, LOW=0xFF
Any suggestions for narrowing this down? (assuming it isn't an outright AS5 and/or JTAGICE3 defect)
Chris