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

No objects Serial2, Serial3,... despite the existence of corresponding peripherals #91

Open
michpro opened this issue May 11, 2024 · 1 comment

Comments

@michpro
Copy link
Contributor

michpro commented May 11, 2024

For chips having more than one U(S)ART port, the corresponding Serial2, Serial3,... objects should be created during compilation, but are not created.
Attempting to use such a non-existent object causes an obvious compilation error.
The problem lies in the design of the ‘WSerial.h’ file.

michpro added a commit to michpro/arduino_core_ch32 that referenced this issue May 13, 2024
@TianpeiLee
Copy link
Collaborator

When I try to change "Serial" to "serial2" it works fine, of course for "UART6" I did write it as "USART6"

image
image

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

2 participants