2025-03-04 3:51 PM - last edited on 2025-03-06 5:57 AM by Andrew Neil
Hi,
Compiler: ARM Keil MDKv5 version 5.41
When using Embedded Trace (Sync Trace with 4-bit) and the Debug Description file (.dbgconf Configuration File) from the STM32U5A5 DFP v3.0.0 pack is enabled, the processor enter debug mode, but no trace data is send from processor. The SWD debugger works correctly and it is possible to step through the code, breakpoints, etc.
Once in debug mode, a breakpoint is placed on the code, and the GPIOE_MODER register is read back as 0xFFFFFFFF, which indicates that the .dbgconf file is somehow incorrect. The Log Sequence shows that the .dbgconf file is read and executed but the trace signals are not enabled.
If the GPIO_MODER register is changed manually (selecting the alternate function mode for PE2, PE3, PE4, PE5 and PE6), the Trace signals are enabled (seen on the oscilloscope) and the Trace data is read correctly in uVision.
Do you have an updated .dbgconf file or a different workaround to enable the Trace Signals for the STM32U5xx processor in uVision?
Thanks!
2025-03-06 5:50 AM - last edited on 2025-03-06 6:01 AM by Saket_Om
Hi @Alex R,
The .dbgconf file is part for enabling trace GPIOs (PE2, PE3, PE4, PE5 and PE6).
This file is given by Keil.
2025-03-06 12:18 PM
@Chiheb_M: Thanks. The file is indeed provided by Keil. However, it is not working correctly, and do not configure the trace pins for trace alternate function.
The reason for asking in this forum is to see of other members have had similar issues enabling trace functionality (whether with Keil or Segger), and if there is possible workarounds. STM32CubeIDE do not support trace functionality, unfortunately.
Also, have ST tried the STM32U5 processors and Keil ULINKPro (or Segger J-Trace) for Embedded Trace successfully? Is there a working example that can be shared with the community? Surely, the trace features must have been tested.
Thanks!