frdm_mcxn947: extend digital-pin-gpios to D0-D15 (incl. SW2/SW3)#561
Open
teddokano wants to merge 1 commit into
Open
frdm_mcxn947: extend digital-pin-gpios to D0-D15 (incl. SW2/SW3)#561teddokano wants to merge 1 commit into
teddokano wants to merge 1 commit into
Conversation
Built
|
| Artifact | Board | Core | Tests | RAM | Sketches | Warnings | Errors |
|---|---|---|---|---|---|---|---|
✅* zephyr_contrib |
ek_ra8d1
| 1 🏷️ | ✅* |
11.9% |
2 | 2 | - |
frdm_mcxn947
| 7 🏷️ | ✅* |
58.7% |
2 | 2 | - | |
frdm_rw612
| 2 🏷️ | ✅* |
83.2% |
2 | 2 | - | |
✔️* zephyr_main |
giga
| 5 🏷️ | ✅* |
39.4% |
72 | 40 | - |
nano33ble
| 1 🏷️ | ✅* |
79.0% |
42 | 18 | - | |
nano_connect
| 📗 | ✅* |
48.1% |
32 | 18 | - | |
nano_matter
| 4 🏷️ | ✅* |
|
22 | 10 | - | |
nicla_sense
| 3 🏷️ | ✅* |
|
18 | 10 | - | |
nicla_vision
| 4 🏷️ | ✔️* |
39.6% |
56 | 28 | (2*) | |
opta
| 4 🏷️ | ✅* |
42.5% |
66 | 44 | - | |
portentac33
| 3 🏷️ | ✅* |
81.9% |
70 | 70 | - | |
portentah7
| 3 🏷️ | ✅* |
41.3% |
84 | 52 | - | |
✅* zephyr_unoq |
unoq
| 1 🏷️ | ✅* |
43.5% |
56 | 12 | - |
Legend
Board Test Status description 🔥 🔥 Test run failed to complete. ❌ 🔴 Test completed with unexpected errors. ⁉️ ⁉️ Test was expected to fail but passed; exception entry is outdated. ✔️* 🚫 Test completed with errors, but all are known/expected. ✅* 🟡 Test completed with some warnings; no errors detected. ✅ 🟢 Test passed successfully, with no warnings or errors. 🌑 🌑 Test was skipped.
|
Memory usage change @ 42bc5e3
Click for full report table
Click for full report CSV |
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.
Summary
Extends
digital-pin-gpiosfor thefrdm_mcxn947variant from 3 entries(shared with the onboard RGB LED only) to 16 entries, covering D0-D13
(all pins on the Arduino-compatible header) plus D14/D15 for the
onboard user buttons SW2/SW3.
Motivation
Previously,
digital-pin-gpiosonly exposed the 3 GPIOs shared with theRGB LED (P0_10, P0_27, P1_2), leaving the rest of the Arduino header
pins (D0-D5, D7, D8, D11-D13) unusable from the Arduino API. This PR
maps all header pins to their physical MCU pins per the official
FRDM-MCXN947 User Manual (UM12018) Arduino header pinout table.
Changes
digital-pin-gpios: extended from 3 to 16 entries (D0-D15)against the existing SPI/I2C aliases already present in the overlay
GPIO_ACTIVE_HIGH/LOW) verified on real hardwarefor every pin; 4 pins (D1, D6, D9, D10) required
GPIO_ACTIVE_LOWdue to how they're wired (D6/D9/D10 are shared with the RGB LED)
following the same pattern already used for onboard buttons in
other variants (e.g.
arduino_opta,beagleconnect_freedom,arduino_nano_matter)builtin-led-gpiosis unchanged; LED_BUILTIN resolution is byphysical pin match, so it continues to work correctly regardless of
array order
Testing
Verified on real FRDM-MCXN947 hardware via Arduino IDE (LinkServer
upload):
digitalWrite/digitalReadon all of D0-D15attachInterrupt/detachInterrupt(all edge/level modes) on D2 andon SW2/SW3 (D14/D15)
LED_BUILTIN(RGB LED) still works as beforeNotes
D13, because A0/A1 do not appear to have a corresponding GPIO-
capable pin (they are documented only as
ADC0_A0/ADC0_B0,unlike A2-A5 which map to
P0_14/P0_22/P0_15/P0_23). SinceA0/A1 cannot be assigned to
digital-pin-gpios, that slot in thenumbering was effectively free, so SW2/SW3 were placed there
instead of being appended after D19.
analog pins A2-A4 and I2C (SDA/SCL), matching the numbering already
used in the official Arduino header silkscreen/schematic
(
ARD_D18/ARD_D19= I2C SDA/SCL).standard Arduino board conventions.