MCXN236 RTC

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

MCXN236 RTC

1,304 Views
LocNguyen31
Contributor I

Dear Team,

I'm working with FRDM-MCXN236, I tried to demo RTC with irtc example code but got issue while i config to use external 32.768Khz OSC, 

The issue as picture, please help to advise solve solutions.

 

thanks, MCXN236 issue.jpegMCXN236.jpeg

Labels (1)
0 Kudos
Reply
6 Replies

1,291 Views
LocNguyen31
Contributor I

Hi Alice Yang,

no Capacitor for this circuit, but i have measure the signal for this Crystal, the signal wave form is good, so Can we can ignore the hardware issue?

 

thanks.

0 Kudos
Reply

1,278 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @LocNguyen31 

Please debug step by step to check which code causes the crash. 

If a crash occurs during download, please create a new MCUXPresso IDE workspace and a new project. Pay attention to choosing the right chip. Then, configure the CLOCK, build the project, and start debugging.

 

BR

Alice

0 Kudos
Reply

1,180 Views
LocNguyen31
Contributor I

Hi Alice,

Still bug at line 363 in file clock_config.c, i'm trrying to study this register,  I still don't understand why there is a bug at this command line

RTC0->CTRL |= RTC_CTRL_CLK_SEL_MASK;

 

line 363.png

0 Kudos
Reply

1,139 Views
kingchen2019
Contributor I
note: below update.
/* Enable fro16k[0] to domain Vbat and Main */
// CLOCK_SetupClk16KClocking(kCLOCK_Clk16KToVbat | kCLOCK_Clk16KToMain);
CLOCK_SetupOsc32KClocking(kCLOCK_Osc32kToVbat | kCLOCK_Osc32kToMain);
0 Kudos
Reply

1,154 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @LocNguyen31 

Please connect  capacitors to EXTAL32K. The external passive crystal oscillator must be connected to  capacitor.

 

BR

Alice

0 Kudos
Reply

1,296 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @LocNguyen31 

 

Please double - check whether there are capacitors connected to EXTAL32K.

55555.jpg

 

BR

Alice

0 Kudos
Reply