Clock on MCXC243

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

Clock on MCXC243

710 次查看
ravicha
Contributor II

Here i attached the code file of MCXC243(48 pin) microcontroller where i m not able to genrate the clock plz anyone give me soution and correct the code

 

in the given code , code is break in below given function

static inline void CLOCK_SetEr32kClock(uint32_t src)

{

SIM->SOPT1 = ((SIM->SOPT1 & ~SIM_SOPT1_OSC32KSEL_MASK) | SIM_SOPT1_OSC32KSEL(src));

}

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

662 次查看
ravicha
Contributor II

hello @Alice_Yang thanks for your, here i have already done this settings for clock

0 项奖励
回复

603 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ravicha 

 

Do you want to choose System oscillator (OSC32KCLK) as ERCLK32K? If so, you need to configure the external crystal oscillator or an external source. Checking from your code and the Clock Configuration view, it hasn't been configured.
Alice_Yang_0-1739355544294.png

 

Configuration as below:

Alice_Yang_2-1739355687940.png

 

 

Additionally, you need to add an external crystal oscillator to your hardware board.
 
 
Hope it helps.
 
BR
Alice
 
0 项奖励
回复

670 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ravicha 

I recommend that you use the Clock Config Tools inside MCUXpresso IDE for configuration. After finish configuring. It can automatically generate code. It has a user - friendly interface.

 

332211.jpg

 

BR

Alice

0 项奖励
回复