[ABANDONED] JRun removes newlines in Windows console output

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

  • [ABANDONED] JRun removes newlines in Windows console output

    Hello,

    this problem has been previously reported in this post by PeterS, where it was stated to have been fixed in the latest release by Fabian.
    However, I have installed the latest 7.7e of the J-Link package, and I am still seeing this problem.
    In short: when I run JRun in a Windows CMD console, the printf outputs from my target overwrite each other on the same line, so that it is impossible to see what is going on if there are lots of fast messages. Basically the console text doesn't scroll. It seems that \n\r is being replaced by \r in JRUN or something like that. I am not sure if JRUN is supposed to be run in a special kind of console and not the standard Windows CMD console, but that is not specified anywhere. If I redirect the output to a file using > log.txt, I can see the data just fine in the log file in Notepad, because Notepad automatically converts \r to \n\r. But I need to see at run time what is going on, as I need to execute certain actions manually while the program is running (tilt the board etc - it is a sensor application).
    If this behavior is by design in JRun, because it is supposed to be like this in JLink viewer or whatever, probably an additional command line option can be added to preserve newlines for users who are using it in the Windows CMD console, otherwise it is difficult to integrate in test scripts that incorporate other tools.
    Thanks for your help!
    PNC
  • Can you please post an example string you sent from your target to JRun + a screenshot how it is displayed in the Windows console?
    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.