Skip to content

Commit d6c8144

Browse files
soburistephanosio
authored andcommitted
boards: arduino_nano_33_ble: add pyocd support
Add support to debugging and flashing with the pyocd. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 7d27309 commit d6c8144

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3+
board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000")
4+
35
include(${ZEPHYR_BASE}/boards/common/bossac.board.cmake)
6+
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
47
include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
36 KB
Loading

boards/arm/arduino_nano_33_ble/doc/index.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,30 @@ Then, you can flash the image using the above script.
121121

122122
You should see the the red LED blink.
123123

124+
Debugging
125+
=========
126+
127+
You can debug an application on the board with a debug adapter that supports
128+
CMSIS-DAP. This board has the SWD connector for debugging but exposes it as
129+
a test pad pattern (not a connector) on the back side of the PCB. So, It needs
130+
bit of difficult soldering. At a minimum, SWDIO and SWCLK need soldering (As
131+
shown in the picture). GND, 3.3V, and RESET are also available in the DIP
132+
connector, therefore it may be easier to connect using the DIP connector
133+
instead of soldering to them.
134+
135+
.. image:: img/nano_33_ble_swd.jpg
136+
:align: center
137+
:alt: Nano 33 BLE SWD connecting
138+
139+
After connecting the debug adapter, you can debug it the usual way.
140+
Type the following command will start debugging.
141+
142+
.. zephyr-app-commands::
143+
:zephyr-app: samples/basic/blinky
144+
:board: arduino_nano_33_ble
145+
:maybe-skip-config:
146+
:goals: debug
147+
124148
References
125149
**********
126150

0 commit comments

Comments
 (0)