Could you point me to some documentation that describes what needs to be done to get the SWO debug "printf" to work over ITM.
I've been trying to get his working and have tried to follow these but to no success.
Guides already looked at.
https://mcuxpresso.nxp.com/api_doc/dev/766/group__SWO.html
Solved! Go to Solution.
Hi,
I set the Trace clock just like you. It can work. After update code in configure tool, don't forget to enable the Trace clock. When debug, user should set clock speed to 24M manually.
Regards,
Jing
Is it for the i.MX RT1064?
Maybe this one helps:
https://mcuoneclipse.com/2019/06/03/swo-with-nxp-i-mx-rt1064-evk-board/
Erich
Sorry, yeah it is for an i.MX RT1064.
During my workflow I would prefer to be able to use the SDK Config Tools so that I can generate the peripherals as needed, and overwriting the custom changes does break the SWO.
Having these settings seem to produce the same divider and mux values as in the blogpost. I did have to choose PLL2 Bypass clock selector. This produces a 24Mhz Clock.
which is confirmed by the RM.
However the PLL2 Bypass is breaking the SWO functionality.
Commenting out the
```CLOCK_SetPllBypass(CCM_ANALOG, kCLOCK_PllSys, 1);``` line makes the SWO work again.
Choosing the "PLL2 PFD1 output" instead of "PLL2 Bypass clock selector output" produces an error in the config tools as the final clock frequency is at 528 Mhz and is over the 132Mhz limit for the TRACE_CLK_ROOT.
Is there a way to make the SWO setup compatible with the Config Tools? Or any settings in the Config Tools?
Hi,
I set the Trace clock just like you. It can work. After update code in configure tool, don't forget to enable the Trace clock. When debug, user should set clock speed to 24M manually.
Regards,
Jing