Clock on MCXC243

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

Clock on MCXC243

821件の閲覧回数
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 返答(返信)

773件の閲覧回数
ravicha
Contributor II

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

0 件の賞賛
返信

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

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