HFXO does not work on nRF52832

Hi,

I cannot start HFXO on nRF52832. I'm using 32MHz crystal TSX-3225 32.0000MF20X-W0(from Mouser) wtih 12pF caps UMK105CG120JV-F(also from Mouser).

Checked with beeper on multimeter, no shorts between pins and between pin and GND.

Looks ok on MCU pin side(QFN package).

This is code

int main(void)
{
    NRF_LOG_INIT(NULL);
    NRF_LOG_DEFAULT_BACKENDS_INIT();

    NRF_CLOCK->TASKS_HFCLKSTART = 1;
    while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);    
And PCB
I'm out of ideas.
Parents Reply
  • This is how we get the startup time on NCS.

    NRF_TIMER1->BITMODE = TIMER_BITMODE_BITMODE_32Bit << TIMER_BITMODE_BITMODE_Pos;
    NRF_TIMER1->TASKS_CLEAR = 1;
    NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
    NRF_TIMER1->TASKS_START = 1;
    NRF_CLOCK->TASKS_HFCLKSTART = 1;
    while(NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
    NRF_TIMER1->TASKS_CAPTURE[0] = 1;
    
    LOG_INF("HF Clock has started. Startup time: %d uS", NRF_TIMER1->CC[0]);

Children
Related