This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HFCLK to Radio Ramp up

Hi,

I'm evaluating the nRF52840 using the DK. I find that the hfxtal in the 52840DK is GSX-223, which is not included in the data sheets characterization of HFXTAL ramp-up time.

My question is, I'm having problem when enabling the HFXTAL then going directly ramping up the radio.

// Enable the HFCLK
NRF_CLOCK->EVENTS_HFCLKSTARTED          = 0;
NRF_CLOCK->TASKS_HFCLKSTART             = 0x00000001;
while(NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
    
// Enable the Radio
NRF_RADIO->EVENTS_READY            = 0;
NRF_RADIO->TASKS_TXEN              = 1;
while (NRF_RADIO->EVENTS_READY == 0);

as of the moment, what i'm doing is arm the RTC clock to fire 250us before enabling the HFCLK. I read somewhere that the BLE softdevice disables the HFCLK whenever the radio is not needed. I'm basically doing the same thing. Am I missing something?

Parents
  • Hi

    I'm sorry, but can you please be a bit more specific as to what you're having trouble with in your project? Have you tried to debug the application to see where exactly the code is incorrectly enabled? Please check out the radio test example in our SDK for an example on how to start the HF clock and the radio without using the SoftDevice.

    Please note that if you have flashed the SoftDevice onto your board while trying to manually configure the HF clock and/or radio, the SoftDevice will hinder you from doing so.

    Best regards,

    Simon

Reply
  • Hi

    I'm sorry, but can you please be a bit more specific as to what you're having trouble with in your project? Have you tried to debug the application to see where exactly the code is incorrectly enabled? Please check out the radio test example in our SDK for an example on how to start the HF clock and the radio without using the SoftDevice.

    Please note that if you have flashed the SoftDevice onto your board while trying to manually configure the HF clock and/or radio, the SoftDevice will hinder you from doing so.

    Best regards,

    Simon

Children
No Data
Related