MR-NavQ95B
Overview
The NXP MR-NAVQ95 [8] is an open-source development board designed for mobile robotics applications. It is based on the NXP i.MX95 applications processor and provides heterogeneous multicore processing capabilities suitable for combining real-time workloads with high-performance application processing.
The platform integrates Cortex-A55 application cores alongside Cortex-M7 and Cortex-M33 real-time cores. In Zephyr, support is currently focused on the Cortex-M7 core, which is typically the target for real-time firmware.
Hardware
Processor
NXP i.MX95 SoC
6x Arm Cortex-A55 cores
1x Arm Cortex-M7 core
1x Arm Cortex-M33 core
Memory
On-chip SRAM: 1376 KiB (ECC)
External LPDDR5: 16 GiB (with inline ECC and encryption)
External Flash: 64 MiB Octal SPI NOR
Supported Features
The mr_navq95b board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
Connectivity
The NXP MR-NAVQ95 [8] consists of a base board which can be extended with optional add-on modules for additional interfaces and functionality. This block diagram [10] provides an overview of the extension boards and the peripherals that are available for use.
These interfaces are multiplexed and depend on board configuration and pinmux settings of the i.MX95 platform.
Serial Console
The default serial console is routed to UART2 interface. It can be accessed through a USB-to_UART bridge on the USB-C connector (J10) on the I/O expansion board. Alternatively, UART2 is also available on a dedicated JST-GH board connector (J2) on the main board.
Build and run Hello World
It is recommended to have the NavQ95 image installed on the SD-card. This will initialise the M33 and the A55 cores and allows to run the zephyr firmware from external flash by running MCUBoot on the M7 at startup. Build and download instructions for this SD-card image can be found on NXP IMX-MANIFEST-NAVQ95 [9]
To build a Zephyr application for the MR-NAVQ95B on ITCM:
west build -b mr_navq95b/mimx9596/m7 samples/hello_world/
To build the application to run from the MX25UM51345G external flash:
west build -b mr_navq95b/mimx9596/m7/flash samples/hello_world/
Uploading the binary can be performed using a Segger/J-Link probe connected to port J7:
west flash
Note
You need to have support for the mimx95_cm7_mx25um target in PyOCD to flash the binary onto the external flash. At the time of writing this support is not yet pulled in.
Follow this procedure to get PyOCD with support for mimx95_cm7_mx25um:
Install pyocd to flash the image through the on-board JTAG device.
Clone pyocd into a directory of your preference and checkout the pr-imx95 branch:
git clone https://github.com/NXP-Robotics/pyOCD -b pr-imx95
Build pyocd:
cd pyocd-private python3 -m pip install .
When running the firmware from external flash, the standard boot flow involves:
System Manager (Cortex-M33) initializes the system
MCUBoot is loaded into TCM
MCUBoot validates firmware in external flash
Firmware executes from flash (XIP)
Ethernet: running a NETC VSI alongside Linux
The i.MX95 NETC (ENETC) Ethernet controller is shared between Linux on the
Cortex-A55 cores and Zephyr on the Cortex-M7. Linux owns the physical port and
PHY through the Physical Station Interface (PSI), which shows up as the end0
network interface. Zephyr on the M7 uses a Virtual Station Interface (VSI) - a
virtual function (VF) of the same controller (enetc0_vsi1, ENETC0 VF1) - and
sends and receives through that shared port.
The VF belongs to the PF, so Linux must create and hand over the VF before the M7 can use it. The M7 driver never touches the PHY or the PF; it only brings up its own station interface and asks the PSI to set its MAC filter over the NETC VSI-to-PSI message channel.
Linux device tree
No M7-specific change is required in the Linux device tree. The default NavQ95
Linux image (see NXP IMX-MANIFEST-NAVQ95 [9]) already enables the ENETC0 PF as
end0 with SR-IOV support, which is all that is needed. The VF itself is
created at runtime (below), not described statically in the device tree.
Bringing up the VF from Linux
Run the following once on the A55 (as root) after Linux has booted, where
end0 is the ENETC0 PF handed to the M7 as VF1:
# Keep Linux's VF driver off the VF so the M7 can own it, then create VF0+VF1.
echo 0 > /sys/class/net/end0/device/sriov_drivers_autoprobe
echo 2 > /sys/class/net/end0/device/sriov_numvfs
# Resolve the VF1 PCI address and let it DMA and raise MSI-X interrupts.
vf=$(basename "$(readlink -f /sys/class/net/end0/device/virtfn1)")
setpci -s "$vf" COMMAND=0x0006 # Bus Master Enable
setpci -s "$vf" CAP_MSIX+2.w=0x8000:0x8000
# Trust the VF so the PSI honours the M7 driver's MAC-filter requests.
ip link set end0 vf 1 trust on
After this, the M7 VSI driver sees that the VF is enabled and comes up on the
network through end0.
Note
The NavQ95 BSP (see NXP IMX-MANIFEST-NAVQ95 [9]) ships an
enetc-vsi-handoff-mcore service that runs these steps at boot, so you
normally do not run them by hand. They are shown here for custom setups.