Skip to main content
Associate III
March 28, 2025
Solved

Does SWV work on the STM32H573 DK board?

  • March 28, 2025
  • 1 reply
  • 339 views

Beside enabled it in the Debugger tab:

Thatseasy_0-1743125055947.png

also called LL_DBGMCU_EnableTraceClock();

but when calling ITM_SendChar(), the ITM->TCR is still 0.

Do I miss anything else?  BTW, I am using the latest STM32CubeIDE 1.18. Thanks.

Best answer by Thatseasy

After adding the following line:

SET_BIT(DBGMCU->CR, DBGMCU_CR_TRACE_IOEN);

The ITM_SendChar is working now.

1 reply

ThatseasyAuthorBest answer
Associate III
April 2, 2025

After adding the following line:

SET_BIT(DBGMCU->CR, DBGMCU_CR_TRACE_IOEN);

The ITM_SendChar is working now.