Skip to content

fix uart pin init for teensy#3586

Merged
hathach merged 1 commit intohathach:masterfrom
felhub:master
Apr 3, 2026
Merged

fix uart pin init for teensy#3586
hathach merged 1 commit intohathach:masterfrom
felhub:master

Conversation

@felhub
Copy link
Copy Markdown
Contributor

@felhub felhub commented Apr 2, 2026

This PR fixes a bug for the UART pin initialization for Teensy boards.

For the teensy_40 and teensy_41 boards, in board.h, we correctly select UART6

#define UART_PORT             LPUART6

However, there was a copy-paste bug in pin_mux.c where we instead muxed UART1 to the chip pads.
This is now fixed by muxing the correct UART6 to the respective output pins.

This is also convenient because UART1 is not even accessible via the headers on the teensy_40.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

MemBrowse Memory Report

No memory changes detected across 2156 targets. View Project Dashboard →

Copy link
Copy Markdown
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this copy-paste bug! Verified the pin assignments against the NXP RT1062 SDK headers and PJRC docs — LPUART6 on GPIO_AD_B0_02/03 is correct. LGTM!

@hathach hathach merged commit ff8e6cc into hathach:master Apr 3, 2026
288 of 290 checks passed
@HiFiPhile
Copy link
Copy Markdown
Collaborator

A bit late, I've just regenerated config files with MCUXpresso : https://github.com/hathach/tinyusb/tree/teensy_config

@hathach
Copy link
Copy Markdown
Owner

hathach commented Apr 3, 2026

@HiFiPhile ah right, I forgot we use the pintool for this, please make a PR and merge :)

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

Successfully merging this pull request may close these issues.

3 participants