Skip to main content
Visitor II
June 17, 2025
Question

Debug Trace ETM - STM32H5, Keil

  • June 17, 2025
  • 3 replies
  • 466 views

Good morning,

 

I am trying to debug an STM32H573II with ETM, but I cannot get it to enter that mode.

Debugging without trace with SWD works correctly.

 

I have used this environment:

 

- uVision 5.42

- ARM Compiler 6.21

- STM32CubeMx 6.14.1

 

I have performed the following checks:

 

- MCU Non_Secure mode. Avoid conflicts.

- Enter debug mode with SWD.

- Verified pinout.

- Checked that JTrace - CortexM works ETM with other MCUs (STM32H7, STM32F4, tested)

- Generate an empty project with STM32CubeMx, just to enter debug mode with trace

 

 

The JTrace log indicates a problem with the reset, but there is no problem if I debug with SWD and SWD+SWO.

 

Can you help me, please?

Has anyone had problems with any H5?

 

 

    This topic has been closed for replies.

    3 replies

    Super User
    June 17, 2025

    @Tresa_LiqueteGarcia wrote:

    - uVision 5.42

    - ARM Compiler 6.21


    Might also be worth asking in the Keil forum - in case it's anything specific to uVision/ARM ...

    https://community.arm.com/support-forums/f/keil-forum

     

    When cross-posting, always be sure to give links between the forums - so everyone can see all the discussions 

     

    Visitor II
    June 17, 2025

    Hello Andrew,

    I will open a post on Keil.
    I have posted it here, in case:

    - any user has had the same issue
    - you could suggest any MCU checks that I am not performing
    - because I am using STM32Cube and may need to take additional steps with H5, which I did not need to do with H7 and F4
    - any hardware recommendations that are not in the MCU recommendations document

    Super User
    June 17, 2025

    @Tresa_LiqueteGarcia wrote:

    I will open a post on Keil.


    Don't forget to give a link back to this thread.

    And also post a link here to your Keil forum thread.

    Visitor II
    June 17, 2025
    Super User
    June 17, 2025

    And don't forget to give a link in the Keil forum back to here!