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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

929 Views
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?

 

 



Tags (2)
0 Kudos
3 Replies

699 Views
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.

872 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @PhilV 

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

 

BR

Alice

0 Kudos

832 Views
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.