cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 - support for ITM/DWT

Michael Bauer
Associate II

Hello,

I am interested to use the ITM/DWT over SWD to output trace data and observe structural coverage during test. My debug tool says that the microcontroller must support ITM and DWT. I am using STM32L433CC (LQFP48 package). In RM0394 section 46.14.1 it states that ITM packets can be optionally generated by Hardware trace (DWT). I know that different packages have different capabilities (example, ETM is only on the 100pin package). So I am trying to learn if this is supported in the LQFP48 package. Typically the datasheet would specify what is in each package but I can't seem to find this info in the STM32L433xx datasheet. I suspect that the TPIU/ITM/DWT is supported on all packages through the JTDO-TRACESWO pin but I want to know for sure.

Can anyone help me either by pointing me to how to tell in the documentation?

thank you,

Mike

4 REPLIES 4

All ST's CM3, CM4 and CM7 have the ITM/DWT optioned.

Usually you'd probe the ROMTABLE in the Core to see what units are present.

Perhaps find an ARM TRM, or one of ST's "Programming Manuals"

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

ETM is on the die, the pins just don't escape on the low pin count devices.

4-bit trace uses a couple of the high order FSMC address bits as I recall.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Uwe Bonnes
Principal III

Debuggers like pyocd or bl*ckm*g*c PC-Hosted report available Debug units from the romtable.