A5 core dont't run with set core clock speed

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

A5 core dont't run with set core clock speed

Jump to solution
869 Views
x_dex
Contributor I

Hello, I tried to run the A5 core of a TWR-VF65GS10 tower evaluation board with 480MHz. I set the A5 core clock to 480MHz and if output on observation clock pin CK01 the core clock of 480MHz could be verified. But if I run a program which toggles a pin in an while loop it runs much slower(pin toggles with 3.3MHz). I used the Processor Expert Software tool for init code generation and setting core clock to 480MHz, is there something else I have to set to make the A5 core run with 480MHz?

Labels (1)
0 Kudos
Reply
1 Solution
705 Views
kef2
Senior Contributor V

Frequency of pin toggle loop doesn't proove anything, especially on high speed MCUs. Bus clock on these is much slower than CPU clock. CKO pin is good way to check CPU frequency. If you don't believe it, then perhaps try using ARM performace monitor. It contains counter which operates at CPU clock frequency. Let it run for few seconds, then read 32bit counter and see if it makes sense. See two routines attached.

View solution in original post

0 Kudos
Reply
1 Reply
706 Views
kef2
Senior Contributor V

Frequency of pin toggle loop doesn't proove anything, especially on high speed MCUs. Bus clock on these is much slower than CPU clock. CKO pin is good way to check CPU frequency. If you don't believe it, then perhaps try using ARM performace monitor. It contains counter which operates at CPU clock frequency. Let it run for few seconds, then read 32bit counter and see if it makes sense. See two routines attached.

0 Kudos
Reply