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

Getting BLE_ERROR_NO_TX_BUFFERS on performing more then 7 BLE transmissions

Iam working on nRF51822, i have developed my projected by editing ble_uart example project. Iam using Softdevice 110 and SDK 10.0.0. When i try to perform more then 7 BLE transmissions, i will get error 0x3004(BLE_ERROR_NO_TX_BUFFERS), i have already gone through some other posts where they are suggesting to wait until event BLE_EVT_TX_COMPLETE to occure and then try again to transmit. iam checking the return value of ble_nus_string_send, when it returns BLE_ERROR_NO_TX_BUFFERS i make a flag(say tx_complete) false, and put a while loop (tx_complete = false; while(tx_complete == false);), and in on_ble_evt callback function, in event BLE_EVT_TX_COMPLETE iam making tx_complete true(tx_complete = true), logically my code should work, but once if i get error 0x3004, nRF51822 will neither receive or send data. Kindly help me in this.

Parents Reply Children
No Data
Related