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

py32030x8开发板上,arduino如何配置2个hw串口 #17

Open
3 tasks done
buckyy2018 opened this issue Jun 20, 2024 · 0 comments
Open
3 tasks done

py32030x8开发板上,arduino如何配置2个hw串口 #17

buckyy2018 opened this issue Jun 20, 2024 · 0 comments

Comments

@buckyy2018
Copy link

描述一下这个bug / Describe the bug

py32030x8开发板上,arduino如何配置2个hw串口? 下面代码一直报错
Serial1.setRx(PA7);
Serial1.setTx(PA8);
Serial1.begin(115200);
一直提示:ERROR: [U(S)ART] Tx pin has no peripheral!

复现步骤 / To Reproduce

第一个串口能打印信息,第二个初始化就报错。

如果正常,应该是什么样 / Expected behavior

分别能够串口打印

截图 / Screenshots

image

日志 / Logs

ERROR: [U(S)ART] Tx pin has no peripheral!

系统 / System

win11

PACK包版本 / Version

vscode arduino

验证

  • 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。
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