Clearing SAMD21 memory without IDE

In trying to debug my MacOSX-SAMD upload issue, I compiled and uploaded ADKTerminalTest to the SAMD.

The SAMD code works, but it disconnects the USB-serial port after typing to the Mac over the serial port.

That means I can’t upload any code to the SAMD now: after plugging in the SAMD, and before I can compile and upload, any new code, the ADKTerminalTest code has sent its message to the Mac and killed the USB-serial interface.

Is there a way to clear SAMD memory from the device itself (switches, pin combinations, whatever), without needing the IDE interface?

Yes, if you’re sitting there laughing at this, so am I. Pretty frustrating, but funny anyway.

Thanks! I didn’t think this would work, but I grounded the RST pin on the SAMD21 and was able to get it into bootloader mode again.

That SAMD21 has now resumed failing the way it was before (disconnect after uploading code), but at least I was able to get it back to that previous failing condition. :slight_smile:

My other SAMD behaves just as it should … upload code, execute it, accept another upload of code, execute THAT code, etc.

So my conclusion is that this SAMD has probably failed, but at least It now fails again in a repeatable way.

THANKS!