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

nRF9160 DK as a Debugger for a second nRF9160 DK,can't programing on the target board.

Hi Øyvind

I can't programing the target board.can you tell me On the "debugger" nrf9160DK ,What do I need to set?

I followed the Settings below:

On the "debugger" nrf9160DK, PC is connected to J4 through USB

I connected a 10pin cable from P22 (Debug Out) on the debugger board into P3 (nrf91 Debug in) on the target board. 

On the target board, I select "nRF only" via SW1.

Connect a second USB cable to J4 on the target board. This will provide power on the target board.

Attached is my connection diagram

  • Hello, 

    First of all, make sure both boards are set to ON and powered.

    Can you please open your preferred command line and enter the following:

    nrfjprog --ids
    
    //From nrfjprog documentation
    //(-i  --ids                   Displays the serial numbers of all the debuggers
    //                             connected to the PC.)

    If both are connected to your computer, you should get two serial numbers. In my case, I get:  

    nrfjprog.exe --ids
    960045504
    960056385

    I have a 10-pin cable connected between "Debug out" on board ending with 6385 to "Debug in" on board ending with 5504.

    In command line, I enter the following to program board 5504:

    nrfjprog.exe --snr 960056385 -e && --snr 960056385 --program merged.hex

    This will erase the device and then program AT Client's merged.hex (nrf\samples\nrf9160\at_client\build\zephyr\merged.hex).

    Let me know how this works for you!

    Kind regards,
    Øyvind

  • Hello,

    can you tell me debugger or target board,What do I need to set?

    I‘m sure  both boards are set to ON and powered,But I don't know if the HW setting is correct,Especially the debugger board.

    I will both are connected to your computer, could not get two serial number.I can see only debugger board serial number .Because the debugger did not select SW1 RF only, the target board chose RF only.So i can't programming the target boardHW connect

  • ychen said:
    can you tell me debugger or target board,What do I need to set?

    Here is my setup, no changes made to HW configuration: (Please ignore LED4)

    ychen said:
    But I don't know if the HW setting is correct,Especially the debugger board.

    Can you please reset the physical buttons back to default settings? See my image above. The debugger will discover the board and configure itself, as described in the documentation:

    When the external board is powered, the interface MCU will detect the supply voltage of the board and program/debug the target chip on the external board instead of the onboard nRF9160 and/or nRF52840.

    I'm sorry, I see that I gave you the wrong commando in the previous post. It should be:

    nrfjprog.exe --snr <serialnumber> -e && nrfjprog.exe --snr <serialnumber> --program merged.hex
    
    OR
    
    nrfjprog.exe --snr <serialnumber> -e
    nrfjprog.exe --snr <serialnumber> --program merged.hex

      

    ychen said:
    oth are connected to your computer, could not get two serial number.I can see only debugger board serial number

    If you are not able to see two serial numbers when issuing nrfjprog --ids, then you will need to check the power of both boards.

    ychen said:
    Because the debugger did not select SW1 RF only, the target board chose RF only.So i can't programming the target board

    SW1 should not be switched, it should be left as is. Please move SW1 to default position on both boards, as this will disconnect the Interface MCU / Debugger.

Related