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

Insufficient initialization in Serial1.begin() #140

Open
thorv opened this issue Oct 26, 2022 · 0 comments
Open

Insufficient initialization in Serial1.begin() #140

thorv opened this issue Oct 26, 2022 · 0 comments

Comments

@thorv
Copy link

thorv commented Oct 26, 2022

Board: Arduino Due,
Board library: Arduino SAM Boards 1.6.12

'Hello' does not appear in the output of Serial1(TX1) in the following program.
Uncomment 'PA11 DISABLE' line, then it works.

void setup(){
  Serial1.begin(115200);
  Serial1.end();
  pinMode(18,OUTPUT); //TX1 override
  //*(uint32_t*)0x400e0e04=0x0800;//PA11 DISABLE (PIO Controller PIO Disable Register (PA) )
  Serial1.begin(115200);
  Serial1.println("Hello.");
}
void loop(){}

I don't think this is a usage that is often used, but I think that the pin configuration should be done every time.

regards,

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