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
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.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.