mcuXpresso - LPC55S69 - SWO ITM Console not working at lower clock speed

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

mcuXpresso - LPC55S69 - SWO ITM Console not working at lower clock speed

1,900 次查看
PhilV
Contributor III

I am having trouble with the SWO ITM console if I try and change the core clock speed on the LPC55S69 that I am using.

At 150MHz (full speed) core & traceclk all is well.
The IDE detects the correct speed:

PhilV_0-1694603008846.png

 

and the SWO ITM Console then shows the correct output (I set a breakpoint after the calls to pins, clocks, and peripherals init, and then do the SWO configuration "detect", and then finally start the SWO ITM Console):

PhilV_1-1694603100856.png

 

However, I don't believe I can run at 150MHz since I need to be able to program the flash, so I have tried to slow the core (and traceclk) to 100MHz using the clock config tool.
According to the ClockConfig tool the freq. is actually 100.1MHz

Either way if I use the autodetected speed (100.1MHz) or if I override it to 100MHz the SWO ITM Console output is garbled:
At 100MHz:

PhilV_2-1694603502428.png

PhilV_3-1694603515145.png

At 100.1MHz:

PhilV_4-1694603543097.png

PhilV_6-1694603575732.png

I've attached my generated "Clock" files - any pointers as to what I'm doing wrong?

 

 



标记 (2)
0 项奖励
回复
3 回复数

1,670 次查看
PhilV
Contributor III

As an update to this, redid the project, but reduced the clock to 96MHz (rather than the 100 / 100.1 that was giving strange results) and the ITM is working again without issue.

1,843 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @PhilV 

How about share your whole project, I help to check on my side.

 

BR

Alice

0 项奖励
回复

1,803 次查看
PhilV
Contributor III
Hi @Alice_Yang , thanks for your reply.
This is in a custom project, but I am going to try doing something similar on the EVK board, if I still have the issue there I will upload the project for you to see.