LPC4370 M4 Clock

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

LPC4370 M4 Clock

825 次查看
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 ......

标签 (2)
标记 (3)
0 项奖励
回复
1 回复

748 次查看
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 项奖励
回复