Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions boards/ti/cc1352p7_launchpad/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,20 @@ Prerequisites:

#. Install OpenOCD

You can obtain OpenOCD by following these
:ref:`installing the latest Zephyr SDK instructions <toolchain_zephyr_sdk>`.
Currently, OpenOCD doesn't support the CC1352P7.
Until its support get merged, we have to builld a downstream version that could found `here <https://github.com/anobli/openocd>`_.
Please refer to OpenOCD documentation to build and install OpenOCD.

After the installation, add the directory containing the OpenOCD executable
to your environment's PATH variable. For example, use this command in Linux:
For your convenience, we provide a `prebuilt binary <https://github.com/anobli/openocd/actions/runs/10566225265>`_.

.. code-block:: console
.. code-block:: console

$ unzip openocd-810cb5b21-x86_64-linux-gnu.zip
$ chmod +x openocd-x86_64-linux-gnu/bin/openocd
$ export OPENOCD_DIST=$PWD/openocd-x86_64-linux-gnu

export PATH=$ZEPHYR_SDK_INSTALL_DIR/sysroots/x86_64-pokysdk-linux/usr/bin/openocd:$PATH
By default, zephyr will try to use the OpenOCD binary from SDK.
You will have to define :code:`OPENOCD` and :code:`OPENOCD_DEFAULT_PATH` to use the custom OpenOCD binary.

Flashing
========
Expand All @@ -185,6 +190,7 @@ Then build and flash the application in the usual way.
:zephyr-app: samples/hello_world
:board: cc1352p7_lp
:goals: build flash
:gen-args: -DOPENOCD=$OPENOCD_DIST/bin/openocd -DOPENOCD_DEFAULT_PATH=$OPENOCD_DIST/share/openocd

Debugging
=========
Expand All @@ -197,6 +203,7 @@ You can debug an application in the usual way. Here is an example for the
:board: cc1352p7_lp
:maybe-skip-config:
:goals: debug
:gen-args: -DOPENOCD=$OPENOCD_DIST/bin/openocd -DOPENOCD_DEFAULT_PATH=$OPENOCD_DIST/share/openocd

Bootloader
==========
Expand Down
Loading