While trying to configure sleep mode, I bricked my SAM4S xplained pro. When I plug the xplaine pro into AS7, its see it when I plug it in (the window pops up with the xplained pro info). Clicking the device programming and click read, I get the error:
No device detected. Error 4109 Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device.
Trying to erase the chip through atprogram doesn't work either:
C:\Program Files (x86)\Atmel\Studio\7.0\atbackend>atprogram -i SWD -t edbg -d SAM4SD32C chiperase Firmware check OK [ERROR] Could not set device properties. Make sure you have selected correct device and interface, and that the hardware connections are correct.
Any ideas how to fix this?