nRF Terminal extension in VS Code fails to connect in RTT mode

I installed the nRF Connect extension pack which also contains the nRF Terminal extension but I cannot make it work in VS Code

In the command pallette I select  nRF Terminal:Start Terminal, specify RTT as a connect method and hit Enter when prompted for device name, serial number and memory address.

There is a message "nRF terminal trying to connect" at the bottom of the VS Code window but it  never succeeds. I verified that the board is connected with JLink , the code is running and I can see output is printed in the JLink RTT Viewer 

Tried to send nRF:clear  but that did not help

Any ideas how to fix?

Thank you

Andy

Parents Reply Children
  • Chris,
    I need to be able to reproduce it first to be able to get more help from the team. I am using PCA10040V2.1.0 and also tried it with v1.0.1 and not able to reproduce this behavior

    1. Please check if you have refreshed the list of the connected device before you try to connect to RTT. Our developers believe that if something has changed in terms of connection, then it is not automatically updated in terms of device info indexing.


    2. the device details is populated with the --deviceversion flag for nrfjprog, which was added in nRF-Command-Line-Tools v10.8.0. Any earlier versions will fail to populate this view

    We do not know anything else that might affect this behavior

  • Thanks for the response Susheel!

    1. Yes, I have refreshed the list and the problem remains.

    2. Where is VS Code expecting nrjfprog to be installed? The only reference to nrfjprog I could find on my machine was in "C:\NCS\v1.9.1\zephyr\scripts\west_commands\tests" Would the latest nRF-Command-Line-Tools be installed when I used the nRF Tool Chain Manager?

  • I manually installed the latest nRF-Command-Line-Tools (V 10.15.4) 

    When I click "Connect to RTT" under connected devices VS Code now doesn't ask me for the device. I select "Automatic search" but the end result is the same. I still see "nRF Terminal Trying to Reconnect...." and none of my logs are shown on the "NRF TERMINAL"

    Connecting via J-Link still works.

  • Some additional information:

    When attempting to Debug my project with logs I see a "Debug Console" a "Terminal" and the "NRF Terminal"

    Under the Debug Console I see information about symbols being read and launching of GDB and gdb-server. It gives me information about the threads being created and finally ends by telling me the temporary breakpoint at main has been reached.

    Under Terminal I see the GDB server and a J-Link connection. It looks to give information about programming the device and then reading some memory locations. It informs me the CPU is starting and reading registers.

    The NRF Terminal is always blank

Related