[SOLVED] Using probe by two processes

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Using probe by two processes

    Hi,

    I have two processes on my PC that need to read data from RTT- one of them from channel 0 and the other one from channel 1.
    While one of the processes is running, I get an error when trying to run the other process, at the point where it tries to open (list_all()[0].open()) the same prob.
    Is there a way to make two PC process share one rtt probe?

    Thanks!
  • I suppose you talk about a debug probe attached via USB.
    You would need to look at the USB driver API (on the host PC side).
    Perhaps it allows you to open a device with a SHARED property / flag.

    We had a similiar issue in relation to CAN adapters and their USB drivers.
  • Hello,

    Thank you for your inquiry.
    Two different processes can't fetch RTT data in parallel. See here for more details.
    wiki.segger.com/RTT#Troubleshooting

    But what you can do is write your own variant of the RTT Viewer where you fetch both channels in the same app with the J-Link SDK:
    segger.com/products/debug-prob…nk/technology/j-link-sdk/

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.