Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards: nxp: add mcx_n9xx_evk #87639

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DerekSnell
Copy link
Collaborator

@DerekSnell DerekSnell commented Mar 25, 2025

Another board for the MCXN947 SOC, very similar to FRDM-MCXN947. Nearly all of these files were copied from the FRDM-MCXN947 board.

Sharing as a draft until more tests are validated.

Using mcuboot with the qspi board variant requires mcu-tools/mcuboot#2246 . And then this build command works well:

west build -b mcx_n9xx_evk//cpu0/qspi samples/basic/blinky --sysbuild --pristine -- -DSB_CONFIG_BOOTLOADER_MCUBOOT=y

Samples and tests tested on this board:

  • samples/basic/blinky
  • samples/basic/button

Known Issues:

  • Flash driver and storage tests fail, see tests: drivers: flash: frdm_mcxn947 tests/drivers/flash/common failure #88080. Specific failures include:
    • tests/subsys/secure_storage/psa/its/secure_storage.psa.its.secure_storage.store.settings
    • tests/subsys/secure_storage/psa/its/secure_storage.psa.its.secure_storage.custom.transform
    • tests/subsys/secure_storage/psa/crypto/secure_storage.psa.crypto.secure_storage
    • tests/drivers/flash/common/drivers.flash.common.default
    • samples/psa/its/sample.psa.its.secure_storage.entropy_not_secure
    • samples/psa/persistent_key/sample.psa.persistent_key.secure_storage.entropy_not_secure
    • samples/subsys/settings/sample.subsys.settings

@DerekSnell
Copy link
Collaborator Author

@hakehuang , can you please run your tests on this new board? Thank you

@DerekSnell DerekSnell force-pushed the mcx_n9xx_evk branch 2 times, most recently from f5aafa2 to 7d2a090 Compare March 25, 2025 16:54
@hakehuang
Copy link
Collaborator

@hakehuang , can you please run your tests on this new board? Thank you

@DerekSnell sure, I kick a full testing, will feedback once done in 1 day.

@DerekSnell
Copy link
Collaborator Author

Resolved build errors found with Twister.
Tested:

  • CPU0
    • samples/sensor/mcux_lpcmp
    • samples/subsys/usb/cdc_acm, both USBHS (default) and USBFS
    • tests/drivers/uart/uart_basic_api/drivers.uart.basic_api.cdc_acm
  • CPU1
    • samples/basic/threads
    • tests/drivers/build_all/led/drivers.led.build
    • tests/drivers/gpio/gpio_api_1pin
  • CPU0/QSPI
    • west build -b mcx_n9xx_evk//cpu0/qspi samples/basic/blinky --sysbuild – -DSB_CONFIG_BOOTLOADER_MCUBOOT=y

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Another board for the MCXN947 SOC, very similar to FRDM-MCXN947

Signed-off-by: Derek Snell <derek.snell@nxp.com>
@DerekSnell
Copy link
Collaborator Author

Rebased to use major NXL_HAL update in #84423 .

@hakehuang
Copy link
Collaborator

hakehuang commented Mar 31, 2025

Rebased to use major NXL_HAL update in #84423 .

All build and board test PASS

pinctrl-0 = <&pinmux_usdhc0>;
pinctrl-1 = <&pinmux_usdhc0>;
pinctrl-2 = <&pinmux_usdhc0>;
cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

according to the schematic P0_11/SD_VDDEN-SD_CARD need to pull high
pwr-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;

Comment on lines +40 to +108
The MCX-N9XX-EVK board configuration supports the following hardware features:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| PINMUX | on-chip | pinmux |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| DMA | on-chip | dma |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| I3C | on-chip | i3c |
+-----------+------------+-------------------------------------+
| CLOCK | on-chip | clock_control |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | soc flash |
+-----------+------------+-------------------------------------+
| FLEXSPI | on-chip | flash programming |
+-----------+------------+-------------------------------------+
| DAC | on-chip | dac |
+-----------+------------+-------------------------------------+
| ENET QOS | on-chip | ethernet |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| SCTimer | on-chip | pwm |
+-----------+------------+-------------------------------------+
| CTIMER | on-chip | counter |
+-----------+------------+-------------------------------------+
| USDHC | on-chip | sdhc |
+-----------+------------+-------------------------------------+
| VREF | on-chip | regulator |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| HWINFO | on-chip | Unique device serial number |
+-----------+------------+-------------------------------------+
| USBHS | on-chip | USB High-Speed device |
+-----------+------------+-------------------------------------+
| USBFS | on-chip | USB Full-Speed device |
+-----------+------------+-------------------------------------+
| LPCMP | on-chip | sensor(comparator) |
+-----------+------------+-------------------------------------+
| FLEXCAN | on-chip | CAN |
+-----------+------------+-------------------------------------+
| LPTMR | on-chip | counter |
+-----------+------------+-------------------------------------+
| FLEXIO | on-chip | flexio |
+-----------+------------+-------------------------------------+
| SAI | on-chip | i2s |
+-----------+------------+-------------------------------------+
| DISPLAY | on-chip | flexio; MIPI-DBI. Tested with |
| | | :ref:`lcd_par_s035` |
+-----------+------------+-------------------------------------+
| MRT | on-chip | counter |
+-----------+------------+-------------------------------------+
Copy link
Collaborator

Choose a reason for hiding this comment

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

Switch to new directive :)

Comment on lines +145 to +148
- :zephyr_file:`samples/subsys/ipc/ipc_service/static_vrings`
- :zephyr_file:`samples/subsys/ipc/openamp`
- :zephyr_file:`samples/drivers/mbox`
- :zephyr_file:`samples/drivers/mbox_data`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use :zephyr:code-sample: to reference code samples by name

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

Successfully merging this pull request may close these issues.

3 participants