Skip to content

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

Open
@buckyy2018

Description

@buckyy2018

描述一下这个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.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions