Hi, I am not sure if this should be in the AS forum or Tools. I am trying to do some debugging with my Atmel ICE with my Arduino UNO, but having little success. I get this error after I toggle the target power. Since its an UNO, by toggle I disconnect the USB and reconnect.
Failed to enable DW : Failed to enter programming mode, ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool)
Steps to recreate
- Click Debug>Start debugging and break
- I get this message
- Click Yes. This will set the dwen fuse on the UNO
- I get a message to toggle the power on the target... I do and click OK
- I get this error:
So, I know from experience that dwen is set. So I need to reenter debug mode to disable, but it won't let me (I get the error). So I connect the chip to my Dragon and can enter debug and disable. So what am I doing wrong where I cant debug on the Atmel ICE?