Clock on MCXC243

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clock on MCXC243

694 Views
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));

}

Labels (1)
0 Kudos
Reply
3 Replies

646 Views
ravicha
Contributor II

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

0 Kudos
Reply

587 Views
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 Kudos
Reply

654 Views
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 Kudos
Reply