Debug on STM32MP1 issue
Hi,
We are currently developing on the STM32MP1. Our goal now is to be able to debug the core at the different running stages : TF-A, Optee, U-boot and kernel. We are using the DK2 with a ST-link and openOCD.
When using your Setup.gdb we experience some issue during the debug session :
- We can't use the step instruction but we can use the stepi instruction. When we use the step instruction we have the following error on openOCD :
Error: Timeout waiting for cortex_a_exec_opcode
Error: Timeout waiting for InstrCompl=1
Error: Timeout waiting for dpm prepare
Error: Timeout waiting for cortex_a_exec_opcode
Error: can't add breakpoint: unknown reason
Warn : negative acknowledgment, but no packet pending
Warn : negative acknowledgment, but no packet pending- The exact same error message is found when loading u-boot symbol after gdb is connected to openOCD.
- The software breakpoint doesn't work, only the hardware breakpoints break the core.
We also have some questions regarding this debug script :
- What is the purpose of these lines :
monitor cortex_a smp_gdb 0
stepi
monitor cortex_a smp_gdb -1
# No SMP, only core 0 for the moment. We'll re-enable it in kernel
monitor cortex_a smp_offWe understand what it does, but we don't understand why it is needed.
Furthermore, in the following snippet :
monitor reset
monitor sleep 2000
monitor reset haltWhy is this sequence is needed ? Why not use directly the monitor reset halt ?
Thanks for you answer,
Regards,
Romain
