J-Link Base not showing anything and debug not working VS Code

Hi,

I am currently developing a software for a custom board with nRF9160 chip.

The code is tested and works on nrf9160DK. The debugging works and the device is showing all information from logs.

The problem comes when I move to my custom board and I try to upload code from my J-Link Base.

There the code uploads but you cannot see any log information on the port of the J-Link.

Also when I try to debug the code I get the following message:

and I cannot seem to fix it.

For trying to see the log I go to NRF Terminal, select the COM port that the device is on and choose 115200 8n1.

Also tried with putty with 9600 but still the connection is established but nothing comes on the screen,

Any suggestions on why the J-Link is not functioning as intended?

Parents
  • Hi,

     

    when debugging with the nordic vscode plugin, you should be able to link the specific build with a debugger/programmer using this:

    Does your debugger serialnumber now pop up?

    Are you able to use nrfjprog to program manually?

      

    Kind regards,

    Håkon

  • The debugger serial number pops up. 

    And I also tried this and get the same results.

    Are you able to use nrfjprog to program manually?

    I am not completely sure what this is. But the programming of the device works fine. The debugging doesn't.

  • Hi,

     

    Could you try to reinstall with the NCS toolchain manager (in nRF connect for desktop) and see if this problem persists?

     

    Kind regards,

    Håkon

  • I am not sure that the problem is this because I cannot connect to the VCOM of the j-link at all.

  • Hi,

     

    A JLink Base does not have USB/UART bridge. It is a pure debugger and programmer.

     

    Kind regards,

    Håkon

  • I did that but I get the same error.

    The error tells me to open launch.json file but that is it.

    Here is my launch.js file I don't know what to look in it.

  • Hi.

    The second part of your file is pointing to a workspace build folder.

    Can you share where you're entering debug mode from? Here's where I'm selecting my project and entering debug:

     

    Can you please press "CTRL + shift + p" and write "nrf connect generate support information" and run that? This should print out all your environment details in the "OUTPUT". Please copy this and share it.

     

    Kind regards,

    Håkon

Reply
  • Hi.

    The second part of your file is pointing to a workspace build folder.

    Can you share where you're entering debug mode from? Here's where I'm selecting my project and entering debug:

     

    Can you please press "CTRL + shift + p" and write "nrf connect generate support information" and run that? This should print out all your environment details in the "OUTPUT". Please copy this and share it.

     

    Kind regards,

    Håkon

Children
  • I am entering debug mode the same way as you are.

    Here are the results from the support information:

  • Hi,

     

    At your end, it is most likely the wrong debug configuration type is used in launch.json:

    Can you try to remove that or just select the correct "nrf-connect" type when launching?

     

    Kind regards,

    Håkon

  • I tried removing this line but didn't fix the problem.

    What do you mean by selecting the correct nrf-connect type?

  • Hi,

     

    Svetlio141 said:
    What do you mean by selecting the correct nrf-connect type?

    You have two debug targets defined in your launch.json at this time.

    You can either remove the whole of:

    And only keep the "nrf-connect" part, or select "nrf-connect" as your debug target.

    Svetlio141 said:
    I tried removing this line but didn't fix the problem.

    Is there still no output in the debug console?

     

    Kind regards,

    Håkon

  • Is there still no output in the debug console?

    No.