Skip to content

Commit

Permalink
doc: board: ti: k3: Add a guide to debugging with OpenOCD
Browse files Browse the repository at this point in the history
Bootloader debug usually tends to be a bit dicey prior to DDR and
serial port getting active in the system. JTAG typically remains the
only practical debug option during the initial bringup.

OpenOCD is one of the most popular environment for providing debug
capability via a GDB compatible interface for developers to work with.

Debugging U-Boot and bootloaders on K3 platform does have a bit of
tribal knowledge that is better documented in our common platform
documentation.

Signed-off-by: Jason Kacines <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
  • Loading branch information
Jason Kacines authored and xypron committed Aug 9, 2023
1 parent ef8336e commit effe508
Show file tree
Hide file tree
Showing 6 changed files with 1,190 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/board/ti/am62x_sk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,27 @@ https://www.ti.com/lit/pdf/spruiv7 under the `Boot Mode Pins` section.
- 11001010

For SW2 and SW1, the switch state in the "ON" position = 1.

Debugging U-Boot
----------------

See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
detailed setup information.

.. warning::

**OpenOCD support since**: v0.12.0

If the default package version of OpenOCD in your development
environment's distribution needs to be updated, it might be necessary to
build OpenOCD from the source.

.. include:: k3.rst
:start-after: .. k3_rst_include_start_openocd_connect_XDS110
:end-before: .. k3_rst_include_end_openocd_connect_XDS110

To start OpenOCD and connect to the board

.. code-block:: bash
openocd -f board/ti_am625evm.cfg
24 changes: 24 additions & 0 deletions doc/board/ti/am65x_evm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,27 @@ artifacts needed to the device:
sb --ymodem tispl.bin > $MAIN_DEV < $MAIN_DEV
sleep 1
sb --xmodem u-boot.img > $MAIN_DEV < $MAIN_DEV
Debugging U-Boot
----------------

See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
detailed setup information.

.. warning::

**OpenOCD support since**: v0.12.0

If the default package version of OpenOCD in your development
environment's distribution needs to be updated, it might be necessary to
build OpenOCD from the source.

.. include:: k3.rst
:start-after: .. k3_rst_include_start_openocd_connect_XDS110
:end-before: .. k3_rst_include_end_openocd_connect_XDS110

To start OpenOCD and connect to the board

.. code-block:: bash
openocd -f board/ti_am654evm.cfg
Loading

0 comments on commit effe508

Please sign in to comment.