Skip to content

Portenta C33 serial output is scrambled #104

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

Closed
Kees-van-der-Oord opened this issue Aug 23, 2023 · 0 comments · Fixed by #106
Closed

Portenta C33 serial output is scrambled #104

Kees-van-der-Oord opened this issue Aug 23, 2023 · 0 comments · Fixed by #106
Labels
type: imperfection Perceived defect in any part of project

Comments

@Kees-van-der-Oord
Copy link
Contributor

Kees-van-der-Oord commented Aug 23, 2023

The implementation of Serial in the renesas_portenta core 1.0.2 does not seem to handle buffer wrapping correctly.

When sending some text such as:

void writeLongStory() {
  Serial.println("The serial send buffer of the Portenta has a size of x bytes.");
  Serial.println("Sending more bytes than that should stall the print function");
  Serial.println("until sufficient bytes are sent and there is enough room for");
  Serial.println("all remaining characters. I don't know why the output of my");
  Serial.println("project is scrambled at the Portenta: the sketch works fine on");
  Serial.println("the Uno R3, Mega R3 and the Nano Every ...");
}

The output is seldom correct, usually corrupted such as (calling the function 3x):

18:54:01.566 -> The serial send buffer of the Portenta has a size of x bytes.
18:54:01.566 -> Sending more bytes than that should stall the print function
18:54:01.566 -> until sufficient bytes are sent and there is enough room forthe Uno R3, Mega R3 and the Nano Every ...
18:54:01.566 -> the output of my
18:54:01.566 -> project is scrambled at the Portenta: the sketch works fine on
18:54:01.566 -> The serial send buffer of the Portenta has aThe serial send buffer of the Portenta has a size of x bytes.
18:54:01.566 -> Sending more bytes than that should stall the print function
18:54:01.566 -> until sufficient bytes are sent and there is enough room for
18:54:01.566 -> all remaining characters. I don't know why the output of my
18:54:01.566 -> er of the Portenta has a size of x bytes. sketch works fine on
18:54:01.566 -> the Uno R3, Mega R3 and the Nano Every ...
18:54:01.566 -> The serial send buff
18:54:01.566 -> of the Portenta has a size of x bytes.tiSending more bytes than that should stall the print function
18:54:01.566 -> unall remaining characters. I don't know why the output of my
18:54:01.566 -> all remaining characters. I don't know why the output of my
18:54:01.566 -> project is scrambled at the Portenta: the sketch works fine on
18:54:01.566 -> the Uno R3, Mega R3 and the Nano Every ...

The test project is here:
PortentaSerialTest.zip

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants