nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53


I am preparing a project for the MAKE IT MATTER contest.

During experiments I broke the USB connector on the nRF7002-DK.

Fortunately we already have downloaded the Light Bulb firmware on nRF 7002-DK and tested before the USB was broken. We have now a working Light Bulb module but no apparent way to reprogram it.

Looking for alternatives, a solution could be connecting the DK via JTAG connector + flat cable + JTAG programmer. Reading Nordic documentation we see that another DK can be used as a JTAG programmer.

So here some questions:

1 - How exactly nRF9160-DK (as JTAG programmer - debugger) can be connected with the nRF7002-DK using the JTAG flat cable?

2 - What is needed is to be able to discover the target device (nRF7002-DK) inside VS code or nRF Connect programmer.

3 - If that can be done can I do the same with Thingy:53 and how exactly?

4 - Can the other micro USB connector (nRF5340 USB) be used to program the nRF5340 chip?

5 - And finally is any way to externally solder / connect a USB connector? The tracks on the original Micro USB are damaged.

Note : I have been through a similar post 2 years ago  nRF9160 DK as a Debugger for a second nRF9160 DK:

But my target board is different

nRF5340-DK was ordered as well some time ago but it will not be here on time

I appreciate any help since the nRF7002-DK can not programmed in time for the contest.

So getting the nRF7002 to life is crucial.



  • Hi,

    The last hours I did some progress but was unable to program the target (nRF7002-DK). I got this error in VS code:

    [error] [ Client] - Encountered error -11: Command erase_file executed for 2075 milliseconds with result -11           
    [error] [  nRF53] - Failed while detecting device memory block protection status!

    What was done so far:

    1 - Connect the two boards with JTAG cable. nRF9150-DK OUT to nRF7002-DK IN

    2 - Leave the Voltage selector on nRF9260-DK in 1V8 position. When in 3V board is dead.

    3 - Power the nRF7002-DK via nRF5340 USB port

    4 - Plug the USB cable on the debugger port (nRF9160-DK)

    at this point I see a JLINK device discovered. If JTAG flat cable is not connecting the two boards I see that nRF9160 is discovered.

    I suppose that means that nrF9160-DK works OK as a JTAG programmer when the tow boards are connected via flat cable.

    It looks that I can not start programming the nRF7002-DK which now runs the Light Bulb Matter program.

    If I can program it with a blink program that will be a good start.

    What am I doing wrong?

    Thanks for any extra help


  • Hi Vasilis, looks like approtect is on, try to run a recover first.

    You can do this with either running nrfjprog --recover in the terminal or click on the recover option for connected devices

    Or you can use the nRF connect for Desktop programmer application by clicking on the Erase all button


  • Hi Jonathan

    Within VS trying to recover I got the message:

    Error recovering device. see output tab

    [11/21/2023, 1:06:31 PM] Unable to resolve configuration with compilerPath "/home/vorrias/ncs/toolchains/1f9b40e71a/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc".  Using "/usr/bin/clang-14" instead.

    Within nRF connect for Desktop programmer I have the erase dimmed



    NOTE: I did not change anything on my DKs.

    I  see your notes afterwords.

    Anyway I am reading your last post to see your directions

  • Still stuck?

    Try to only power the nRF7002DK with two jumper cables, one for VDD and one for GND. Then use the 10pin connector cable. 

    If in need of a infographic i can provide one later. 


  • Hi Jonathan

    Yes I am still stacked. In fact am in kind of panic concerning the contest dead line. Time is very limited now and I am troubling to move forward.

    Anyway I will do that and report back



  • Hi Jonathan,

    Looks we got it working following your latest suggestion.

    Broken nRF7002-DK now is powered via Arduino connectors since I have build a custom shield there to interface with my WIZcube I/O boards

    So the procedure is:

    1 - Power the nRF7002-DK first

    2 - Then power the nRF9160 "programmer"

    3 - Open VS code reports that nRF9160-DK is connected but reports chip nRF5340 (that is on the nRF7002-DK. Proceed with programming, flashing OK and application is working.

    In Desk top programmer same results. This is OK

    Project image looks complicated but it is not. While waiting for the right cable I had to do a "home made" programmer cable from old staff. I was unable to source it locally.

    The nice thing is that I am able to program the nRF7002-DK using nRF9260-DK

    I will have that as a reference creating step by step directions to my contest project. This experience may will be interested to others.

    I imagine I can program Thingy:53 (or ant Thingy) in VS code as well using the same method.

    Job Done. Consider it as answered

    Thank you Jonathan



  • vorrias said:
    I imagine I can program Thingy:53 (or ant Thingy) in VS code as well using the same method.

    Correct, this should work the same way. 

    vorrias said:
    I will have that as a reference creating step by step directions to my contest project. This experience may will be interested to others.

    Great thanks, much appreciated!


Reply Children
No Data