LPC55xx ITM global timestamp

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC55xx ITM global timestamp

1,327 次查看
Bacterius
Contributor II

Hi,

I am working on enabling ITM features on an LPC55xx (LPC5504). It works but I have a problem with global timestamps. I am receiving global timestamp packets sent by the device (GTS1/GTS2) but they always have zero payload. Local timestamps are okay so I don't think it is an ITM/DWT configuration problem.

Does LPC55xx support global timestamps in tracing? If so, how are they enabled?

Thanks

标签 (1)
0 项奖励
回复
2 回复数

1,324 次查看
danielholala
Senior Contributor II
I'm wondering what exactly do you mean with "ITM features"?

I only know how to output text to SWO ITM console of MCUXpresso IDE, as described here:

https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_SWO_Trace.pdf
0 项奖励
回复

1,321 次查看
Bacterius
Contributor II

It might be more the DWT but it allows to output things like PC sampling, exception entry/exit, local/global timestamps over the SWO pin. For example https://interrupt.memfault.com/blog/profiling-firmware-on-cortex-m