LPC55S69 cycle counter

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

LPC55S69 cycle counter

跳至解决方案
991 次查看
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 解答
929 次查看
converse
Senior Contributor V

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

在原帖中查看解决方案

1 回复
930 次查看
converse
Senior Contributor V

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