Skip to content

Commit 44eb401

Browse files
jeremybettiscarlescufi
authored andcommitted
npcx9m6f_evb: Instructions on how to flash board
Add instructions on how to flash blinky sample to this board using jlink jtag programmer. Signed-off-by: Jeremy Bettis <[email protected]>
1 parent 2e19e91 commit 44eb401

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

boards/arm/npcx9m6f_evb/doc/index.rst

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,32 @@ JTAG-only sessions.
9494
Flashing
9595
========
9696

97-
Build application as usual for the ``npcx9m6f_evb`` board, and flash
98-
using Servo V2, μServo, or Servo V4 (CCD). See the
97+
If the correct headers are installed, this board supports both J-TAG and also
98+
the ChromiumOS servo.
99+
100+
To flash using Servo V2, μServo, or Servo V4 (CCD), see the
99101
`Chromium EC Flashing Documentation`_ for more information.
100102

103+
To flash with J-TAG, install the drivers for your programmer, for example:
104+
SEGGER J-link's drivers are at https://www.segger.com/downloads/jlink/
105+
106+
The openocd from Zephyr SDK 0.14.2 doesn't include npcx support, so build openocd from source.::
107+
108+
sudo apt-get install libftdi-dev libusb-1.0.0-dev
109+
git clone https://git.code.sf.net/p/openocd/code ~/openocd
110+
cd ~/openocd
111+
./bootstrap
112+
./configure --enable-jlink --enable-ftdi
113+
make clean
114+
make
115+
sudo make install
116+
117+
Build and flash the blinky sample.::
118+
119+
west build -t clean && \
120+
west build -c -p auto -b npcx9m6f_evb samples/basic/blinky && \
121+
west flash --hex-file build/zephyr/zephyr.npcx.hex \
122+
--openocd /usr/local/bin/openocd --openocd-search /usr/local/share/openocd/scripts
101123

102124
Debugging
103125
=========

0 commit comments

Comments
 (0)