Boron Code protection

I am new to particle development. I’m looking for how to secure the SWD port, but not seeing anything. How does one go about protecting the code so that it can’t be copied from a device via the SWD port?

Thanks

Yes. It’s a feature of the nRF52 MCU. You use nrfjprog or the Particle Debugger to set the APPROTECT register in the UICR bytes.

Of course once you’ve turned it off (set to 0) there is no longer any way to turn it back on, as SWD/JTAG is then disabled, so it’s permanent.

However, it’s still possible to get the compiled binary off the device using DFU over USB, so you’ll also need to disable that in the bootloader.