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

micro esb and ble crash

Hi, I've added micro ESB to work during BLE timeslots granted, with uesb_config as start of slot and uesb_disable as end

During the slot, the regular work, uesb_event_handler for radio work and uesb_send_pkt_evt_handler to send data.

The radio interrupts have been redirected from the m_radio_callback()->NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO

to call RADIO_IRQHandler on micro esb.

Problem is that not always but frequently I get systemn crashes on 2 specific function

uesb_start_rx and start_tx_transaction

My guess is only as good as my understandement of this library that is I only scratch the outside, so I would guess that at some point this library delays more that the slot given and I don't have a chance to terminate the micro esb work until after the BLE time slot ends...

Any ideas?

Parents Reply Children
  • Hi Kenneth,

    No I did not because at the time I started with this there was no example available, I had to break through my self and had something running. I'm gald there is now an example for this!! Going to take a look right away, and most likely replace my code with the example obviously. So, thank you very much for the tip!! :)

    One last question, can we get this working on a nrf52 with minor/zero changes ?

    Thank you once again for the help.

  • In general the nRF52 do have legacy support, so it should work, though that will not take advantage of new and improved features in hardware. So I expect minor changes, though you might consider first update to the nRF51-S130 v2 (when production ready), and then do the switch to the nRF52-S132v2. This should ensure that the softdevice API will be the same when going to the nRF52 series.

Related