How to set clock to 48Mhz (KL25Z4)

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

How to set clock to 48Mhz (KL25Z4)

1,421 次查看
frederik_sebast
Contributor II

Board: KL25Z4

 

Hey, 

 

me and my team are having problems setting the clock from the default mode to 48 Mhz using the external crystal that the the board comes with.

 

I saw that there is a clock set up routine in the start up code (system_MKL25Z4.c and system_MKL25Z4.h) already given and that a routine will be executed based on the definition of CLOCK_SETUP which is not defined by default. So I just defined CLOCK_SETUP as 2 in order to go into PEE mode and have a clock frequency of 48 Mhz. However, when I run the code, reset mode is entered. 

 

So how can I make the system set up to run with 48 Mhz clock frequency?

 

Any help here is appreciated! Thank you very much.

 

Best regards,

Frederik

0 项奖励
0 回复数