Skip to content

Incorrect MCXA2xx Metadata for FlexCAN + Gates#109

Merged
felipebalbi merged 2 commits into
embassy-rs:mainfrom
bjackson312006:can-fixups
Jul 1, 2026
Merged

Incorrect MCXA2xx Metadata for FlexCAN + Gates#109
felipebalbi merged 2 commits into
embassy-rs:mainfrom
bjackson312006:can-fixups

Conversation

@bjackson312006

@bjackson312006 bjackson312006 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This PR fixes two issues in data/metadata/MCXA2xx.json relating to FlexCAN metadata:

  • Updated CAN1_TXD from P2_0 to P2_1. This is consistent with the chip's datasheet (ALT11 - CAN1_TXD is listed for P2_1 on page 120). This also fixed a pin collision (since CAN0_RXD also listed as P2_0, which would be impossible). Note: This issue also seems to be present for LPUART0, since P2_0 is listed for both TXD and RXD (see around line 6895 in data/metadata/MCXA2xx.json), but I didn't change that since it's out of scope for this PR.
  • Added the missing CAN1 interrupt.

This PR also adds gates in mcxa2xx.json and mcxa5xx.json.

After making those changes, I regenerated the PAC.

@bjackson312006 bjackson312006 changed the title Incorrect MCXA2xx Metadata for FlexCAN Incorrect MCXA2xx Metadata for FlexCAN + Gates Jun 29, 2026
@bjackson312006 bjackson312006 marked this pull request as ready for review July 1, 2026 17:02
@felipebalbi felipebalbi merged commit 7d33d9d into embassy-rs:main Jul 1, 2026
21 checks passed
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.

2 participants