how to enable ETM Trace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-10 1:41 PM
Hello,
I am using STM32F4 (nucleo F439ZI), so Cortex-M4. I am trying to enable ETM tracing and see something on TRACE pins, I am using STLINK for SWD and observing TRACE pins with an oscilloscope. I enable the trace pins on pin configuration, and enable -I think- trace related things in debug regs and then tried various things with ETM regs but I cannot see any output from TRACE pins. Is there any hint or a guide to do this ?
Thanks.
Mete
Solved! Go to Solution.
- Labels:
-
DEBUG
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-13 1:37 PM
I realized even if I select trace output for GPIOs in STM32CubeMX configuration, the pins were not initialized as such in the autogenerated code. So initializing them manually solved the isse.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-10 2:09 PM
The register configuration is shown here, may have other debugger side dependencies. Probably want the technical materials from ARM for debugger writers.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-13 1:37 PM
I realized even if I select trace output for GPIOs in STM32CubeMX configuration, the pins were not initialized as such in the autogenerated code. So initializing them manually solved the isse.
