Repository navigation
Replace flexSPI IP interface with ROM API - #61
Merged
felipebalbi merged 3 commits intoOct 28, 2026
Merged
Conversation
jerrysxie
requested review from
JamesHuard and
felipebalbi
and
a balanced review from Copilot
October 27, 2026 00:49
There was a problem hiding this comment.
🔵 Needs a closer look
Boot-critical ROM initialization needs hardware-focused human review, including resolution of the clock-source selection issue.
1 open issue
What changed in this PR
Replaces the MCXA bootloader’s direct FlexSPI interface with Embassy’s ROM-backed NOR driver for external flash and boot-journal persistence.
Changes:
- Uses ROM-based flash probing, initialization, reads, erases, and page-split partial programming.
- Preserves Port A/Port B board support and removes the legacy self-test probe.
- Updates Embassy revisions and lockfiles in the library and example workspaces.
| File | Description |
|---|---|
libs/ec-slimloader-mcxa/src/board.rs |
Migrates external flash operations and initialization to the ROM API. |
libs/ec-slimloader-mcxa/Cargo.toml |
Removes the flexspi-selftest feature. |
libs/Cargo.toml |
Updates Embassy dependency revisions. |
libs/Cargo.lock |
Records updated library dependencies. |
examples/mcxa-577app/Cargo.toml |
Aligns example Embassy revisions with the library. |
examples/mcxa-577app/Cargo.lock |
Records updated example dependencies. |
Review effort: Balanced
felipebalbi
reviewed
Oct 27, 2026
JamesHuard
reviewed
Oct 27, 2026
JamesHuard
reviewed
Oct 27, 2026
JamesHuard
approved these changes
Oct 27, 2026
felipebalbi
approved these changes
Oct 27, 2026
felipebalbi
merged commit Oct 28, 2026
7ca7797
into
OpenDevicePartnership:mcxa-secure-boot
9 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Hopefully the last functional PR for MCXA.
Replaces the existing flexSPI IP interface (which has confusing IP offsets) with @felipebalbi's new ROM API interface from Embassy-mcxa.
PR 7249
Init, read and write interfaces updated with
new_with_options,partial_readandpartial_program.Keeps speed and settings at safe minimums for maximum compatibility (performance concern is limited since we are only reading few journal bytes/updating them). Validated on WB/MX chips.
Tested as working on both EVK (port A) and target (port B).