RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

CC2650STK shell not reading chars from UART

Open A-Paul opened this issue 9 years ago • 8 comments

The tests/shell doesn't react to input. Starting message is coming up, so writing to stdout (UART) is working. After that there is no reaction.

A-Paul avatar Jun 14 '17 14:06 A-Paul

Hey @A-Paul thanks for linking. Im interested, how can we solve this issue? Is there any method to figure out the bugg? Any ideas someone ?

Kind regards

nRhR avatar Jun 14 '17 20:06 nRhR

I can confirm this issue, reading UART works, writing to it does not. But I also observed that the buffer seems not do be flushed at the end, the last line of output is always missing.

Btw. lots of tests do not work as expected on this platform, i.e. periph_timer runs but timers fire immediately regardless of the delay set. And as the base-timer is not working all xtimer tests fail, too.

smlng avatar Jun 20 '17 08:06 smlng

Hello @nRhR , generally we have to "hunt" the bug down. ;) shell_run() is essentially a loop over readline() and handle_input_line() - all of them in <sys/shell/shell.c>. readline is a loop that calls getchar().

Hey @smlng,

I can confirm this issue, reading UART works, writing to it does not.

This is a external view, I think. ;) I experienced a hangup when reading the UART - from RIOTs perspective.

A-Paul avatar Jun 22 '17 18:06 A-Paul

I can confirm the bug running the default example in ccc2650 launchpad. When I using the code composer to debug step by step until the call of shell function and run after this point the example works. Apparently the problem is the corruption between RIOT threads initialization and can be linked with timers issue.

lcgamboa avatar Jun 26 '17 01:06 lcgamboa

@lcgamboa good point! Timers are not working correctly, try tests/periph_timer - though it seems to work, its output is nonsense.

smlng avatar Jun 26 '17 06:06 smlng

Issue is solved by #7342

A-Paul avatar Jul 12 '17 18:07 A-Paul

then lets close this?

smlng avatar Jul 12 '17 18:07 smlng

@smlng, strange suggestion. ;)

A-Paul avatar Jul 12 '17 18:07 A-Paul