K66 High Speed Run Tracing

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

K66 High Speed Run Tracing

379 Views
ryanclemens
Contributor I

I'm trying to use ETM trace with IAR and a J-Trace on a K66 in High Speed Run mode.  

Everything works great until the switch to High Speed Run Mode.  I've tried setting the SIM_SOPT2 register to set the TRACECLKSRC to 0 (This will use the MCGOUTCLK / TRACECLK divider) and setting the SIM_CLKDIV4 register to have TRACEDIV=2 and TRACEFRAC=1 for a trace clock output in HS RUN mode of 180 * (2/3) = 120, but I still am getting errors.

Are there any other tricks to switching the trace clock frequency mid debug on this processor?  Are there other registers I need to set?

0 Kudos
1 Reply

299 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I couldn't find there need another register setting with K66 chip.

For I don't have J-Trace tool, I couldn't do on site test.

I will check with Segger engineer if there with any comment.

Thank you for the patience.

best regards,

Mike

0 Kudos