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

sd_ble_tx_buffer_count_get not functioning properly after interrupt disabled?

Hello, if I disable interrupt on nrf51xxx device, function sd_ble_tx_buffer_count_get will simply run right into hard fault handler, without returning anything.

I do not "HAVE TO" disable the interrupt when executing this function but the entire logic of my program became really dicey if I keep the interrupt available all the time when calling a function that invoke sd_ble_tx_buffer_count_get.

So my question is:

1st: (the silly one) what may caused this problem? 2nd: Is there a workaround? Note that if there isn't, it's no problem, I'll simply modify my code, but still I am quite curious.

Thank you.

Parents Reply Children
No Data
Related