doc: develop: tools: add doc to debug with stm32cubeide

Add documentation to use STM32CubeIDE for debug only.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
This commit is contained in:
Guillaume Gautier 2025-02-21 08:48:15 +01:00 committed by Fabio Baltieri
parent d2698a17ac
commit 6cf1ecbeff
3 changed files with 27 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -87,6 +87,33 @@ Project Setup
The project can be run using the :guilabel:`Run` button, as well as debugged
using the :guilabel:`Debug` button.
Debugging only
**************
If you only want to use STM32CubeIDE to debug your project you can proceed as follows:
#. First, make sure to compile your project and have the ``zephyr.elf`` available.
#. Run STM32CubeIDE and import your project by going to :menuselection:`File --> Import...`:
.. figure:: img/stm32cube_menu_import.webp
:align: center
:alt: Import project
#. Select :menuselection:`C/C++ --> STM32 Cortex-M Executable`, then click :guilabel:`Next`:
.. figure:: img/stm32cube_import_project.webp
:align: center
:alt: Import project selection
#. Click on :guilabel:`Browse` to browse to your build folder and select your ``zephyr.elf``.
#. Click on :guilabel:`Select` to select your MCU. If relevant, choose also your CPU and/or core.
#. Click on :guilabel:`Finish`.
#. The project can now be debugged using the :guilabel:`Debug` button.
Troubleshooting
***************