Skip to content

Commit 84fce99

Browse files
JiafeiPankartben
authored andcommitted
boards: imx91_evk: add JLink runner support
Use JLink runner to flash and debug on i.MX91 EVK. Signed-off-by: Jiafei Pan <[email protected]>
1 parent 44a67ea commit 84fce99

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

boards/nxp/imx91_evk/board.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright 2025 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
board_runner_args(jlink "--device=MIMX9131" "--no-reset" "--flash-sram")
7+
8+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/nxp/imx91_evk/doc/index.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,53 @@ CPU's UART1 for A55 core.
7272
Programming and Debugging
7373
*******************************
7474

75+
.. zephyr:board-supported-runners::
76+
77+
There are multiple methods to program and debug Zephyr
78+
79+
Option 1. Boot Zephyr by Using JLink Runner
80+
===========================================
81+
82+
The default runner for the board is JLink, connect the EVK board's JTAG connector to
83+
the host computer using a J-Link debugger, power up the board and stop the board at
84+
U-Boot command line.
85+
86+
Then use "west flash" or "west debug" command to load the zephyr.bin
87+
image from the host computer and start the Zephyr application on A55 core0.
88+
89+
Flash and Run
90+
-------------
91+
92+
Here is an example for the :zephyr:code-sample:`hello_world` application.
93+
94+
.. zephyr-app-commands::
95+
:zephyr-app: samples/hello_world
96+
:host-os: unix
97+
:board: imx91_evk/mimx9131
98+
:goals: flash
99+
100+
Then the following log could be found on UART1 console:
101+
102+
.. code-block:: console
103+
104+
105+
*** Booting Zephyr OS build v4.1.0-3063-g2c7ef313ac38 ***
106+
Hello World! imx91_evk/mimx9131
107+
108+
Debug
109+
-----
110+
111+
Here is an example for the :zephyr:code-sample:`hello_world` application.
112+
113+
.. zephyr-app-commands::
114+
:zephyr-app: samples/hello_world
115+
:host-os: unix
116+
:board: imx91_evk/mimx9131
117+
:goals: debug
118+
119+
Option 2. Boot Zephyr by Using U-Boot Command
120+
=============================================
121+
75122
U-Boot "go" command is used to load and kick Zephyr to Cortex-A55 Core.
76123

77124
Copy the compiled ``zephyr.bin`` to the first FAT partition of the SD card and

0 commit comments

Comments
 (0)