ANT on PCA10056 and custom board ?

Dear Members,

I want to run ANT+ code in my custom board,

It works well on PCA10056, I can upload softdevice and the code to custom board board,

but I didn't get any responses,

I have tried with code without softdevice, the custom board works well

Any ideas ?

Thanks

Parents Reply
  • void clock_initialization()
    {
        /* Start 16 MHz crystal oscillator */
        
        NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
        NRF_CLOCK->TASKS_HFCLKSTART    = 1;
        
        //CLOCK_HFCLKSTAT_SRC_Xtal

        /* Wait for the external oscillator to start up */
       /*
         while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0)
        {
             __WFE();
        }
      */
        nrf_delay_ms(500);
        /* Start low frequency crystal oscillator for app_timer(used by bsp)*/
        NRF_CLOCK->LFCLKSRC            = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos);
        NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
        NRF_CLOCK->TASKS_LFCLKSTART    = 1;
        
      /*
        while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0)
        {
           __WFE();
        }
        */
    }    

    I can run that snippet,

    but only RC clock are running

    screen shot on register LFCLKSTAT and HFCLKSTAT

    Will it work with softdevice ?

    I'm not using softdevice now...

    use this snippet then softdevice init ? is that possible ?

Children
Related