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 John,

    As indicated in my early message today. I have been able to get nRFjprog 9.8.1 and RTT Viewer V6.40 to operate concurrently in the way you expect. I was even able to use SES to program and debug and maintain the RTT connection.

    I do not recall seeing the specific popup you are describing. But until I selected the initial "Specify Target Device" I repeatedly received a popup directing me to pick a device to connect with.

    Do you have anything in the "Script fie (optional)" dialog box?

    Though unlikely, it's may be possible the issue you are seeing is device dependent. What device are your working with? More likely, you are experiencing an system environment issue.

    I have not tried 9.7.3. But I did notices that depending on the amount of log data and the BLE traffic, there was a very noticeable lag from the time an event occurred before is was logged to the RTT window.

    I may look into that a bit more later.

    Best regards,

    Jeff

Children
  • John,

    This video shows CLT and RTT working together as desired. I am investigating why it's taking RTT so long to flush it's buffers.

    The programs are the same. I only change the output string.

    Cheers,

    Jeff

Related