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

Radio can not work inside timeslot handler

I'm trying to transmit a radio signal inside time slot handler, the code is like:

  switch (signal_type) 
     case NRF_RADIO_CALLBACK_SIGNAL_TYPE_START:
         radio_configure();
         NRF_RADIO->EVENTS_READY =   0;
         NRF_RADIO->TASKS_TXEN     =   1;
         while (NRF_RADIO->EVENTS_READY == 0U)
         {
         }

However, the code is stopped inside the "while(.)" loop, I can not get the radio ready event. It seems code "NRF_RADIO->TASKS_TXEN = 1" can not trigger the radio.

How to control the RADIO to transmit a radio signal inside timeslot handler?

Thanks.

Related