This application note has been explicitly tested on the NXP MIMXRT1060-EVKB board, however, it should apply to the other NXP EVK boards in the i.MX RT family as well, perhaps, with some minor changes to the software.
Connecting MIMXRT1060-EVKB Board to the NAVQ+ Kit
The following hardware setup is required for installing and running a Zephyr sample on the NXP MIMXRT1060-EVKB board:
Remove jumpers J9 and J10, to disconnect the SWD signals from onboard debug circuit. These jumpers are installed by default.
Use default power selection on J40 with pins 5-6 shorted (power supply via J1).
Connect the external J-Link probe to J2, 20-pin dual-row 0.1" header.
Connect the Ethernet cable to the RJ45 connector (J43) and to the local network.
Connect a USB hub to the NAVQ+ kit.
Connect a USB cable from the USB hub to J1. The USB connector J1 is used to power the board, and provides a UART/USB bridge through the onboard debug circuit (serial console). It is important to power up the board before powering up J-Link.
Connect a USB cable from the USB hub to the J-Link probe. It is important to do so after the board has been powered up, otherwise, the J-Link probe won't be able to detect the MCU.
Connecting MIMXRT1060-EVKB Board to a Linux PC
The MIMXRT1060-EVKB Board can be connected to any Linux PC the same way as it is connected to the NAVQ+ kit. Note that the USB hub is not necessary if the Linux PC has more than one USB port.
Building Zephyr for MIMXRT1060-EVKB Board
Zephyr samples can be built as described in the Zephyr Project documentation:
For example, use the following command to build the hello_world sample for the MIMXRT1060-EVKB board:
west build -p always -b mimxrt1060_evkb samples/hello_world
Installing Zephyr on MIMXRT1060-EVKB Board from the NAVQ+ Kit
Use west to install Zephyr from the NAVQ+ Kit:
user@imx8mpnavq:~/work/zephyrproject/zephyr$ west flash
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner jlink
-- runners.jlink: JLink version: 7.92g
-- runners.jlink: Flashing file: /mnt/sdcard/work/zephyrproject/zephyr/build/zephyr/zephyr.bin
Installing Zephyr on MIMXRT1060-EVKB Board from a Linux PC
If the J-Link probe is directly connected to the build machine then the “west flash" command can be used to flash the sample as described in the Zephyr Project documentation:
on the host PC to be able to Flash the boards over the J-Link probe. After installing the J-Link software, verify that the J-Link probe is detected by the SEGGER J-Link Commander and identifies the MCU successfully:
$ JLinkExe -nogui 1 -if swd -speed auto -device MIMXRT1062xxx6A
SEGGER J-Link Commander V7.92c (Compiled Aug 30 2023 14:58:04)
DLL version V7.92c, compiled Aug 30 2023 14:57:42
Connecting to J-Link via USB...O.K.
Create the J-Link Commander script for flashing Zephyr onto the MIMXRT1060-EVKB board:
$ cat runner.jlink
loadfile "zephyr.bin" 0x60000000
writeDP 1 0
Put the build/zephyr/zephyr.bin file into the current directory and run the following command:
Build the led_network_control sample for the MIMXRT1060-EVKB board:
west build -p always -b mimxrt1060_evkb emcraft/app/led_network_control
Install the demo on the target board as described above. If you connect to the target serial console, you will see the following output after reset:
*** Booting Zephyr OS build emcraft-ef041c6-2-gdaa341a973af ***
Single-threaded TCP server waits for a connection
on address 192.168.1.11 port 4242...
From the NAVQ+ console, connect to the target board using telnet:
user@imx8mpnavq:~$ telnet 192.168.1.11 4242
Connected to 192.168.1.11.
Escape character is '^]'.
list: print supported LEDs
<LED> on: turn on the specified LED
<LED> off: turn off the specified LED
Type “list" to see the available LEDs on the target board: