Skip to main content
AOlve
Visitor II
March 4, 2019
Question

How do I configure ETM tracing on an stm32?

  • March 4, 2019
  • 1 reply
  • 1143 views

Hello, I am trying to use a segger jtrace pro debugger with an stm32303E-EVAL board through the ETM trace connector, however I am not seeing a signal on any of the trace pins including the trace clock when running my program. I've ensured I have continuity from the trace clock pin on the micro controller to the PE2 GPIO. When using the cortex-M Trace reference board included with the debugger I can see a clock signal on the scope. How can I configure ETM tracing on an stm32? Thanks.  

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
March 4, 2019

In Keil there is typically a debugger script (.ini) which pokes into RCC. DBGMCU and GPIO register to get clocks and pins into a suitable state. Usually a TRACE enable in DBGMCU. Some fiddle with ITM or SWD registers.

Search the file trees, usually a Blinky trace example, I will try to dig something up later.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
March 5, 2019
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..