Skip to content

[request] Allow configurable UART pins #170

Description

@scientiaetlabor

Summary

Hello,

Could support be added for changing the UART TX/RX pins used by HardwareSerial?

On some Silicon Labs Explorer Kit boards, the default UART pins are internally connected. For example, the board pinout diagrams show:

  • BGM220 Explorer Kit: PA5 = TX, PA6 = RX, internally connected
  • xG24 Explorer Kit: PA5 = TX, PA6 = RX, internally connected

This can be limiting when a project needs to use UART with external hardware on different header pins.

Use case

In my project, I need to connect a UART GPS module running at 115200 baud, and I also need to communicate with an ESP32 over UART.

Because PA5 and PA6 are internally connected to the onboard debugger / USB serial interface on boards such as the BGM220 Explorer Kit and xG24 Explorer Kit, it would be useful to assign a different externally connected pair of pins for an additional hardware UART.

Request

It would be helpful if Arduino users could configure which pins are used for a hardware UART, similar to how some other Arduino cores allow assigning TX/RX pins when creating or initialising a serial port.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions