Debugging M4 on STM32MP15xxxx: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
No edit summary
No edit summary
Line 10: Line 10:
== Debugging with STM32CubeIDE ==
== Debugging with STM32CubeIDE ==
Debugging for both modes is also described in the ST wiki [https://wiki.st.com/stm32mpu/wiki/STM32CubeIDE#Arm-C2-AE_Cortex-C2-AE-M_debug_on_STM32_MPU_device here].
Debugging for both modes is also described in the ST wiki [https://wiki.st.com/stm32mpu/wiki/STM32CubeIDE#Arm-C2-AE_Cortex-C2-AE-M_debug_on_STM32_MPU_device here].
=== Without console or lan connection ===
If you have no console or lan connection STM32CubeIDE don't let you start the debugging session.
In this case it is possible to manually start th M4 on the target and start the debugging session with "thruJTAG/SWD (Engineering mode)".
Therefor go to:
# Debug Configuration
# Then to the Startup tab
# Doppleclick your .elf file in "Load Image and Symbols"
# Uncheck "Download"


== Debugging with GDB (without IDE) ==
== Debugging with GDB (without IDE) ==
Line 15: Line 25:


== Debugging with trace output on Linux ==
== Debugging with trace output on Linux ==
https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package#Logging_in_production_mode

Revision as of 14:50, 10 February 2021

For general information about the STM32MP15xxxx pleas refer to the official Wiki. This page describes various ways to debug the M4 on STM32MP15xxxx from ST.


Debugging modes

Production mode and Engineering mode are described here in the ST Wiki. To enter Engineering mode with the Avenger96 read the chapter "Boot Mode" in the Getting started guide and look for "NoBoot".

Debugging with STM32CubeIDE

Debugging for both modes is also described in the ST wiki here.

Without console or lan connection

If you have no console or lan connection STM32CubeIDE don't let you start the debugging session. In this case it is possible to manually start th M4 on the target and start the debugging session with "thruJTAG/SWD (Engineering mode)". Therefor go to:

  1. Debug Configuration
  2. Then to the Startup tab
  3. Doppleclick your .elf file in "Load Image and Symbols"
  4. Uncheck "Download"


Debugging with GDB (without IDE)

https://wiki.st.com/stm32mpu/wiki/GDB#Debug_Cortex-M4_firmware_with_GDB

Debugging with trace output on Linux

https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package#Logging_in_production_mode