@@ -72,6 +72,53 @@ CPU's UART1 for A55 core.
72
72
Programming and Debugging
73
73
*******************************
74
74
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
+
75
122
U-Boot "go" command is used to load and kick Zephyr to Cortex-A55 Core.
76
123
77
124
Copy the compiled ``zephyr.bin `` to the first FAT partition of the SD card and
0 commit comments