I seem stuck trying to load a custom bootloader via a J-Link Edu interface using SWD. I routinely reprogram SAMD21 projects using Segger’s J-Link Edu and Microchip Studio. When I first tried this on the SAMD51 Thing Plus, it warned me that the Security Bit was set and that clearing the bit would clear the Flash memory. I let it do that.
Now when I try to read the CPU ID I get: “Error connecting to device over SWD Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device.”
Why would the Security Bit be set on these products? Is anyone successfully reprogramming them via the SWD interface?