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

libuarte issue: nrf_balloc_alloc retuns NULL after a while.

Hi.

I'm having an issue with the libuarte library. It seems to work perfectly but after some hours of running the program crashes because nrf_balloc_alloc returns NULL inside the rx_buffer_scheduile function which is called from the uart_evt_handler under the NRF_LIBUARTE_DRV_EVT_RX_BUF_REQ event.

I tried enabling the RX pullup. Increasing the RX buffer (count 16, size 250) but still getting the NULL pointer. I receive very little data @ 1125200 (it's an AT command module so there's not much being sent/received).

Any idea on how I can debug or fix this? Maybe increasing the ISR priority?? 


Thanks a lot.

Parents Reply
  • Hi,

    yes, I was able to solve this. I don't remember exactly how but I think it had something to do with the timers assigned to the LIBUARTE library or to ESB. I reviewed the timers and did some changes and it got fixed. I did try many things and nothing worked. 

    But maybe your issue is different, I only got a NULL once every several hours of constant activity. Was pretty rare so was really hard to debug.

    regards.

Children
Related