ReadByte not working in tutorials/SerialMonitor #4933
Replies: 3 comments 3 replies
-
I suggest you test the "echo" examples. https://github.com/tinygo-org/tinygo/tree/release/src/examples/echo |
Beta Was this translation helpful? Give feedback.
-
Look how interesting. I'll continue the research later.
Type something then press enter: ASCII Characters: Serial Debug Assistant (for Windows) - COM 6 - 115200 Bps 8N1 DTR/RTS
|
Beta Was this translation helpful? Give feedback.
-
Hi, I ran into the same problem as post #1 where it would just print a "p" when I typed anything on the host.
After much experimentation, I found that updating my main go installation (e.g. https://go.dev/doc/install) from 1.20 to the latest 1.25 fixed the issue, and now tinygo works as expected! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've just installed tinygo and tested the blinky and serialmonitor tutorials. The basic serialmonitor code that simply writes "hello World!" works fine, but compiling the more advanced one which accepts keystrokes over the USB port waits for input then simply
types 'p' and then hangs. I've tried putting extra prints in but nothing useful shows up.
A print before the call to ReadByte works - generates a flood of prints until I type something in, then responds with a single 'p' then hangs, no further output.
I'm talking to a waveshare-rp2040-zero.
Any ideas welcome...
Beta Was this translation helpful? Give feedback.
All reactions