Description
I am new to embedded rust in general and have just been messing around with the Arduino Uno examples. I noticed something off with the examples that use serial communication (uno-usart.rs
and uno-millis.rs
). They seem to only be able to read a 4 bytes per line sent.
So with the uno-usart.rs
example run, I get:
Hello from Arduino!
a
Got 97!
Got 10!
abc
Got 97!
Got 98!
Got 99!
Got 10!
abcd
Got 97!
Got 98!
Got 99!
Got 10!
abcdefg
Got 97!
Got 98!
Got 99!
Got 10!
If you look at the above examples, you can see that the answers are wrong starting with abcd
. The values returned are for a
, b
, c
, and \n
. Nothing after abc
every prints a value. This is the case for the later examples as well. Any ideas what is going on here? Can you reproduce?
Note: My environment was created by using the generator at https://github.com/Rahix/avr-hal-template.git and then copying over the serial example code. The code is running in release.