LPC4370 M4 Clock

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC4370 M4 Clock

824件の閲覧回数
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 返信

747件の閲覧回数
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 件の賞賛
返信