How to Enable External Oscillator on i.MX RT1170

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

How to Enable External Oscillator on i.MX RT1170

Jump to solution
574 Views
sanjana291
Contributor III

Dear NXP Community,

 

I'm currently working on MIMXRT1176AVM8A processor and i would like to use external crystal oscillators in (XTALI & RTC_XTALI) for the system clock.

 

Could you please guide me on the proper configuration steps to enable the external oscillator?

 

Looking forward to your support and suggestions.

 

Best Regards,

Sanjana S

0 Kudos
Reply
1 Solution
550 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @sanjana291,

Please use the project examples found on the MIMXRT1170-EVKB SDK, as these examples already integrate the setup for external crystal oscillators. You can find the SDK on the following page: Select Board | MCUXpresso SDK Builder

BR,
Edwin.

View solution in original post

0 Kudos
Reply
2 Replies
551 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @sanjana291,

Please use the project examples found on the MIMXRT1170-EVKB SDK, as these examples already integrate the setup for external crystal oscillators. You can find the SDK on the following page: Select Board | MCUXpresso SDK Builder

BR,
Edwin.

0 Kudos
Reply
561 Views
sanjana291
Contributor III
In the clock configuration, I have added the following code:

/* Config OSC 24M */
ANADIG_OSC->OSC_24M_CTRL |=
ANADIG_OSC_OSC_24M_CTRL_OSC_EN(1) |
ANADIG_OSC_OSC_24M_CTRL_BYPASS_EN(1) |
ANADIG_OSC_OSC_24M_CTRL_BYPASS_CLK(1) |
ANADIG_OSC_OSC_24M_CTRL_LP_EN(1) |
ANADIG_OSC_OSC_24M_CTRL_OSC_24M_GATE(1);
I would like to confirm:

Is this modification sufficient to enable the external oscillator?

Are there any additional steps needed in the clock configuration or boot settings to ensure the system uses the external XTAL instead of the internal RC oscillator?

How can I verify that the system is indeed running from the external oscillator?
0 Kudos
Reply