[SOLVED] printf issue when using \n (since V7.68b)

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

  • [SOLVED] printf issue when using \n (since V7.68b)

    Hello,
    There is a regression that appeared in 7.68b, when using printf with LF to display logs under Eclipse using GDB Segger Jlink.

    Globally, when doing a printf containing a \n, the last 4 characters are repeated after the LF.

    Easier to explain with an example :

    printf("Flash drivers demo"\n);
    printf("- Initialize flash driver");
    printf("-> OK\n");

    I get this in Eclipse console:

    SEGGER J-Link GDB Server V7.68a - Terminal output channel
    Flash drivers demo
    - Initialize flash driver -> OK

    SEGGER J-Link GDB Server V7.68b - Terminal output channel
    Flash drivers demo
    demo
    - Initialize flash driver -> OK
    > OK

    If it can help the issue disappears when using \r instead of \n
    (could be a workaround, but unfortunately in that case it does not work anymore with other IDEs such as IARW).

    Below some details, let me know if you need more:
    SEGGER J-Link GDB Server V7.68b Command Line Version
    JLinkARM.dll V7.68b (DLL compiled Jul 22 2022 17:24:21)

    Regards,
    Frederic
  • We have fixed an issue in yesterday's version V7.84e that caused similar behavior.
    Can you please give it a try and confirm that it solves the issue you are describing, as well?

    segger.com/downloads/jlink/#J-…twareAndDocumentationPack



    BR
    Alex
    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.