LPC4370 M4 Clock

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

LPC4370 M4 Clock

647 Views
cpchen
Contributor III

I am using LPC4370 for a project, try to figure out what is the clock M4 CPU cruns on , the code retrieve the CPU clock is show below in BOLD.   however, debug output below shows CPU is running on 204MHz even before the SystemCoreClockUpdate() was performed.  This does not match LPC4370 manual and many posts , which all said the M4 CPU does not power up to 204MHz, and need to raise the speed by whoever do the coding.  

Did I do something or understood something wrong ?  can anyone help to clarify this ? raymundovelardeErichS

pastedImage_7.png

int main(void)
{
uint32_t i;
uint32_t f1;
f1 = Chip_Clock_GetRate(CLK_BASE_MX);
DEBUGOUT("Before SystemCoreClockUpdate f1 = %d \r\n",f1);
SystemCoreClockUpdate();
f1 = Chip_Clock_GetRate(CLK_BASE_MX);
DEBUGOUT("After SystemCoreClockUpdate f1 = %d \r\n",f1);
Board_Init();
TEST_START = 1;

.........  continue ......

Labels (2)
0 Kudos
1 Reply

570 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello CHEN CHUANPING ,

Please check the code before run into main(),  it already configured the clock:

there is a  SystemInit()->Board_SystemInit()->    Board_SetupClocking();

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos