This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: debug console not start a new line

Genius 13655 points
Part Number: AM3358


Hello Champs,


HW: AM3358 GP EVM

SW:ti-processor-sdk-linux-am335x-evm-08.02.00.24

When input more than 61 characters in debug console, it will overlay the previous characters instead of starting a newline. Please see below snapshot.



But the issue will not occur on customer's own board.

Thanks
Regards
Shine

  • Shine,

    Can you have them echo the value of "$COLUMNS" in both of these environments? Certain combinations of terminal emulators and serial monitors can misbehave and potentially misreport / ignore certain terminal standards.

    Regards,

    Randolph

  • Hi Randolph:

    Thanks for your response,

    I checked the $COLUMNS value on my board, but I observed the value sometimes is 80 and sometimes is 96 or other values.

    I can get newline when I set the terminal width to 80 characters when the value is 80, but I have no idea why I have to do the setting to solve this problem for the TI platform.

    I use another brand chip and the $COLUMNS value is 80, no matter what width of the terminal, the terminal can get newline when the character count reaches 80.

    I am so confused, do I need to check other settings for am3358? and how can I change the $COLUMNS value correctly?

    Thanks

    Best Regards

    YiFong

  • YiFong,

    This is because by default our terminal uses the settings transmitted by the serial console to initialize line and column count (often referred to as terminal geometry). This is expected default behavior for most modern terminals, however serial terminals are a little special. They respect the initialization but there is no way to transmit resize events. As such, if you resize there terminal emulator window you will need to reissue the "resize" command to reload terminal geometry.

    The discrepancy comes from some vendors choosing to lock the serial console geometry to an older standard like 80x23. In which case you're fine until you resize the window smaller than that. (If you're curious about how terminal resize events work please see the following: https://www.gnu.org/software/libc/manual/html_node/Miscellaneous-Signals.html). Unfortunately there's really not a nice, standard solution to this currently.

    Regards,

    Randolph