Hello, recently I have been programming my ATSAMR21B18 module with the Atmel ICE. I had programmed it with an example application "APPS_SIMPLE_EXAMPLE_STAR". I programmed the same application onto the R21 Xplained Pro and was able to verify that the two boards were wirelessly communicating with each other. However, after making some light code changes like toggling GPIO pins and reconfiguring some clock parameters, I noticed that the device would hang.
For an external reason, this module was de-soldered and re-soldered onto a separate board with the same PCB design. After doing so, I am now experiencing severe difficulties in trying to even debug the module. It takes roughly 20 tries before a successful debugging session is created. When unsuccessful I get a range of errors like: "No Device Connected", "Cannot write memory address 41002100", "Could not activate interface", or "Timed out waiting for chip erase to complete". These persist after writing the original example application to the device. Is this a sign of chip damage, or could there be something else causing this? Thanks.