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.

Characters wrap around on the same line in minicom/teraterm for AM335x

Hello,

I am having this problem with serial port (tty) where the command that enter wraps around on the same line after 80th character. This becomes very inconvenient to work with. Is this issue with specific kernel ? I am using kernel 3.2.0

I tried using minicom on linux and teraterm on windows machine. Have same issue.

root@am335x-evm:/lib/modules/3.2.0/updates/drivers/net/wireless/wl12xx#
ddddddddddddddddddddddddddddddddddddpdates/drivers/net/wireless/wl12xx# dddddddd

  • Hi Kedar,

    Have you done any modifications to your kernel regarding the serial console? Which version of the SDK are you using?

    I'm using AM335x SDK 05.07.00.00 with no changes and communication is done via picocom and I don't have this issue:

    root@am335x-evm:~# cd /lib/modules/3.2.0/updates/drivers/net/wireless/wl12xx/
    root@am335x-evm:/lib/modules/3.2.0/updates/drivers/net/wireless/wl12xx# dddddddd
    dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
    dddddddddddddddddddddddddddddddddd

    The command I'm using to start picocom is:

    sudo picocom -b 115200 /dev/ttyS0

    Best regards,
    Miroslav

  • Hi Miroslav,

    I am using I'm using AM335x SDK 05.06.00.00. Yes, I did recompile the kernel, however changes were not related to tty (serial console). Those were to change INI file for TI WLAN card in Arch directory.

    I use Serial-to-USB convertor with 115200n8.

    On linux I use /dev/ttyUSB0 with minicom. On windows I am using COM11 with Tera term.

    Thanks,

    Kedar

  • Hi Kedar,

    Have you enabled line wrapping in minicom? It seems to be disabled by default: http://elinux.org/Minicom

    Best regards,
    Miroslav

  • Kedar,

    I was running into a similar issue with the AM335x EVM and the standard TI AMSDK. If you want to enter commands past the 80 column boundary through the serial console, try the below command sequence for example to set your console to 160x80 characters (needs to fit within the bounds of your terminal emulator). It still won't gracefully wrap whatever you enter at the new boundary but at least you now have more room to enter longer commands. Or, you can use SSH instead.

    root@am335x-evm:~# echo $COLUMNS
    80
    root@am335x-evm:~# shopt -s checkwinsize
    root@am335x-evm:~# stty cols 160 rows 80
    root@am335x-evm:~# echo $COLUMNS
    160
    root@am335x-evm:~#

    Regards,
    Andreas