Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdio_cdc_acm causing corruption of first shell input #20305

Open
keestux opened this issue Jan 27, 2024 · 0 comments
Open

stdio_cdc_acm causing corruption of first shell input #20305

keestux opened this issue Jan 27, 2024 · 0 comments

Comments

@keestux
Copy link
Contributor

keestux commented Jan 27, 2024

Description

Test programs that use shell and have stdio_cdc_acm enabled show corruption of the first input to shell. So far I have just seen this on my sodaq-sara-sff boards, but I assume this is true for all sam0 (arduino style boards).

Steps to reproduce the issue

  • build one of the test programs
  • connect a "term"
  • look at the output
  • type help and ENTER

Expected results

The banner should be printed, the test program's introduction and a prompt.

Actual results

With make ... term you'd see something like this:

$ make CC_NOCOLOR=1 BOARD=sodaq-sara-sff -C tests/periph/gpio flash term
make: Entering directory '/home/kees/src/RIOT/tests/periph/gpio'
Building application "tests_gpio" for "sodaq-sara-sff" with MCU "samd21".

"make" -C /home/kees/src/RIOT/pkg/cmsis/ 
...
/home/kees/src/RIOT/dist/tools/pyterm/pyterm -p "/dev/ttyACM0" -b "115200"  
Twisted not available, please install it if you want to use pyterm's JSON capabilities
2024-01-27 22:24:12,586 # Connect to serial port /dev/ttyACM0
Welcome to pyterm!
Type '/exit' to exit.
2024-01-27 22:24:13,590 # shell: command not found: c.
> 2024-01-27 22:24:13,590 # 
> 2024-01-27 22:24:13,590 # 
> 2024-01-27 22:24:13,591 # 
> help
2024-01-27 22:24:38,079 # NOTE: make suc.help
2024-01-27 22:24:38,079 # shell: command not found: NOTE:
> help
2024-01-27 22:28:12,523 # help
2024-01-27 22:28:12,523 # Command              Description
2024-01-27 22:28:12,524 # ---------------------------------------
2024-01-27 22:28:12,524 # init_out             init as output (push-pull mode)
...
> 

Sometimes I see part of the banner on the shell input.

Welcome to pyterm!
Type '/exit' to exit.
help
2024-01-27 22:34:26,163 # in(): This is Rmahelp
2024-01-27 22:34:26,163 # shell: command not found: main():
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant