@@ -151,15 +151,20 @@ Prerequisites:
151
151
152
152
#. Install OpenOCD
153
153
154
- You can obtain OpenOCD by following these
155
- :ref: `installing the latest Zephyr SDK instructions <toolchain_zephyr_sdk >`.
154
+ Currently, OpenOCD doesn't support the CC1352P7.
155
+ Until its support get merged, we have to builld a downstream version that could found `here <https://github.com/anobli/openocd >`_.
156
+ Please refer to OpenOCD documentation to build and install OpenOCD.
156
157
157
- After the installation, add the directory containing the OpenOCD executable
158
- to your environment's PATH variable. For example, use this command in Linux:
158
+ For your convenience, we provide a `prebuilt binary <https://github.com/anobli/openocd/actions/runs/10566225265 >`_.
159
159
160
- .. code-block :: console
160
+ .. code-block :: console
161
+
162
+ $ unzip openocd-810cb5b21-x86_64-linux-gnu.zip
163
+ $ chmod +x openocd-x86_64-linux-gnu/bin/openocd
164
+ $ export OPENOCD_DIST=$PWD/openocd-x86_64-linux-gnu
161
165
162
- export PATH=$ZEPHYR_SDK_INSTALL_DIR/sysroots/x86_64-pokysdk-linux/usr/bin/openocd:$PATH
166
+ By default, zephyr will try to use the OpenOCD binary from SDK.
167
+ You will have to define :code: `OPENOCD ` and :code: `OPENOCD_DEFAULT_PATH ` to use the custom OpenOCD binary.
163
168
164
169
Flashing
165
170
========
@@ -185,6 +190,7 @@ Then build and flash the application in the usual way.
185
190
:zephyr-app: samples/hello_world
186
191
:board: cc1352p7_lp
187
192
:goals: build flash
193
+ :gen-args: -DOPENOCD=$OPENOCD_DIST/bin/openocd -DOPENOCD_DEFAULT_PATH=$OPENOCD_DIST/share/openocd
188
194
189
195
Debugging
190
196
=========
@@ -197,6 +203,7 @@ You can debug an application in the usual way. Here is an example for the
197
203
:board: cc1352p7_lp
198
204
:maybe-skip-config:
199
205
:goals: debug
206
+ :gen-args: -DOPENOCD=$OPENOCD_DIST/bin/openocd -DOPENOCD_DEFAULT_PATH=$OPENOCD_DIST/share/openocd
200
207
201
208
Bootloader
202
209
==========
0 commit comments