LPC55S69 cycle counter

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

LPC55S69 cycle counter

Jump to solution
928 Views
tkontogiorgis
Contributor II

Hello,

I am trying to profile a code with  LPCXpresso55S69. I am using MCUXpresso IDE.I load the hello_world_swo project example. I run the specific function (From Breakpoint to Breakpoint) with 12MHz clock default from the Project and cycles Register (or same Cycle Counter from  SWO) had the value 38765.

After that, i tried to run the same code with 150MHz clock ( i replaced  BOARD_BootClockFRO12M(); with  BOARD_BootClockPLL150M() ) and the cycles value was 51400.

All the other project settings was the same.

1)Shouldn't be these cycles the same and independent from the clock of the system while the code is exactly the same?

2)Am i missing something? 

3)Is there something else i should change to run 150MHz clock?

Thanks in advance,

Theo

1 Solution
866 Views
converse
Senior Contributor V

No. The flash is not zero wait state, and is has different wait states for higher frequencies.

View solution in original post

1 Reply
867 Views
converse
Senior Contributor V

No. The flash is not zero wait state, and is has different wait states for higher frequencies.