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

RTT Viewer / nrfjprog Issue

If I have the J-Link RTT Viewer open and connected to my PCA10056 (viewing RTT output from an external board connected to P19) and then reprogram the board using nrfjprog this will result in both nrfjprog and RTT Viewer locking up until I unplug and plug back in the PCA10056.  When this happens RTT Viewer prints the following error: "Communication timed out: Requested 12 bytes, received 0 bytes!"  Sometimes this won't happen and it will program just fine and RTT will print out after the boards resets, but the majority of the time it does.  This never used to happen though and I'm not sure what changed to cause it.  If I disconnect the RTT Viewer, program, then reconnect RTT I don't have any problems, but it's annoying to have to do this everytime I want to program the board.

Has anyone one else had this problem?

Parents Reply
  • Hi Kenneth,

    So at the time I initially posted about this issue i was using version 9.7.3 of the command line tools and I'm pretty sure I had updated the Segger software to a newer version that didn't come with 9.7.3 but I can't remember what version it was.  I uninstalled the command line tools and all of the Segger software and did a clean install of 9.7.3 and everything was back to working normally.

    Recently I updated to version 9.8.0 of the command line tools and started having the same issues again.  Uninstalling that and reinstalling 9.7.3 has it working again.  So maybe its a compatibility issue between the command line tools and the newer Segger software?

    John

Children
  • Hi jsample,

    I'm pretty sure a clean install of Command Line Tools 9.8.0 should work fine.

    I'm a bit confused about what you actually have installed. (What is working what is not, what was installed when.)

    Could you remove all traces of J-Link and other segger software, then install Command Line tools 9.8.0, and let me know how things are working?

    When you say "newer Segger software" here, what are you referring to? Did you install J-Link V6.40 after installing the Command Line Tools?

    You should be able to use the RTT viewer in J-Link V6.34g (The one used in 9.8.0)

    Lastly, is there an important reason for you to use 9.8.0? If the solution remains elusive, you might just want to stick with 9.7.3 for your work environment. Slight smile

  • Hi Håvard,

    A clean 9.7.3 install works consistently without issue and a clean 9.8.0 doesn't.  As for the "newer Segger software" looking back at my downloads folder I had 6.34e downloaded in September so it was most likely that version.  I haven't tried 6.40.

    There is no important reason to use 9.8.0 so I'll stick with 9.7.3 for now.

    John

  • Hi Håvard,

    One more thing I wanted to mention I noticed when using 9.8.0 is that the data shows up in the RTT Viewer very slowly compared to when using 9.7.3.  When I do a reset on my project about 80 lines of RTT debug spit out as everything initializes and with 9.7.3 they all show up together pretty immediately, but with 9.8.0 the lines show up slowly in chunks and it takes several seconds for everything to appear.

    John

  • Good news jsample!

    Looks like  nRF5x-Command-Line-Tools v9.8.1 has just been released.

    It uses the newes J-Link V6.40

    Could you try it and let us know if you have any luck?

  • Hi Håvard,

    I'm still seeing the same issues with 9.8.1 and 6.40.  One other thing I'm noticing with the 6.40 RTT Viewer is that every time I try to connect I get a popup titled: "J-Link V6.40 Script file not found".  The text reads: "Could not find script file referenced by debugger: unspecified Proper functionality cannot be guaranteed".

    John

Related