This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Erase Thingy connected to nRF52840-FK

Hi, I am developing something using Zephyr on a nRF52840-DK as one Bluetooth mesh node and a Thingy as the other. To program the Thingy, I have it connected the Thingy to the debug port of the nRF52840-DK. Programming either the Thingy or the nRF52840-DK using the Zephyr build tools works fine.

My problem is that I sometimes want to erase one or both of these devices using nrfjprog -e but I cannot work out how to explicitly say which device I want to erase. I am aware of the family (-f) flag but these are both NRF52 devices so that does not help. And unfortunately, -i gives me only one serial number, as shown below.

So in my case, with Thingy connected to the debug of the nRF52840-DK, how do I use nrfjprog to erase the Thingy?

Thanks

Martin

Light>nrfjprog -v
nrfjprog version: 10.1.1
JLinkARM.dll version: 6.44e

nrfjprog -i
683470605

  • Hi Martin

    The reason you're seeing just one ID when calling nrfjprog -i is because this command displays all the debuggers connected to the PC, not all nRF devices. The DK will automatically detect when a device is connected to the Debug out header, and thus, it will program the Thingy whenever it is connected to the DK and turned on. Whenever you want to program the DK instead, you can just remove the debug cable from the DK, and the on-board chip will be programmed instead.

    This can be confirmed by using the nRFConnect programmer app, where the nRF model will be printed in the log when connecting. For example, when I had the Thingy connected in and opened the programmer app the log shows Model: NRF52832_xxAA_REV1, while if I disconnect the debugger cable and connect again the log shows Model: NRF52840_xxAA_ENGB. There is no "model" command in nrfjprog though, so you won't be able to confirm this using nrfjprog alone.

    Best regards,

    Simon

Related