Skip to main content
TSaku.2135
Associate II
November 19, 2019
Solved

how to use debug trace (_TRACE) ?

  • November 19, 2019
  • 2 replies
  • 1484 views

I found CMACRO "_TRACE" in USBPD project in STM32CubeExpansion_USBPD_F0_V2.1.0.

I think I can enable usbpd debug trace feature using _TRACE. However, I can not find way check debug trace in my environment. I am using KEIL MDK ARM. Please advise.

This topic has been closed for replies.
Best answer by Yohann M.

I advice you to have a look to following documents 'UM2552' (and §3.6.4)

In the projects we deliver, this switch "_TRACE" willl allow to see communications between 2 boards.

Trace is done through USART pins connected to ST link. You should use Cubemonitor-UCPD and use the functionality described in the following image:

0690X00000ApRTRQA3.png

You should see logs like this:

0690X00000ArpntQAB.png

2 replies

Yohann M.
Yohann M.Best answer
ST Employee
November 19, 2019

I advice you to have a look to following documents 'UM2552' (and §3.6.4)

In the projects we deliver, this switch "_TRACE" willl allow to see communications between 2 boards.

Trace is done through USART pins connected to ST link. You should use Cubemonitor-UCPD and use the functionality described in the following image:

0690X00000ApRTRQA3.png

You should see logs like this:

0690X00000ArpntQAB.png

TSaku.2135
Associate II
November 19, 2019

Thank you. I will try that the tool.