Hi,
I'm using BLE on nrf52832 and softdevice s132. It seems that when I send too many packets (around 45), the ble crashes. Is there a way to increase that number or at least make it not crash?
Thanks
Hi,
I'm using BLE on nrf52832 and softdevice s132. It seems that when I send too many packets (around 45), the ble crashes. Is there a way to increase that number or at least make it not crash?
Thanks
Since I'm using another microcontroller (STM32) that communicates with the Nordic MCU, I eventually solved this by disabling the while loop of send-retry in nordic, and moving the retry process to the STM MCU.
So I disabled the following loop condition:
while (err_code == NRF_ERROR_RESOURCES);
that tries to resend a failed message.
Turns out when the error code is Not Enough Resources (19), the UART is busy, and so I get a HAL_BUSY from HAL_UART_Transmit_IT(). And then I just retry sending the message until it succeeds.
Since I'm using another microcontroller (STM32) that communicates with the Nordic MCU, I eventually solved this by disabling the while loop of send-retry in nordic, and moving the retry process to the STM MCU.
So I disabled the following loop condition:
while (err_code == NRF_ERROR_RESOURCES);
that tries to resend a failed message.
Turns out when the error code is Not Enough Resources (19), the UART is busy, and so I get a HAL_BUSY from HAL_UART_Transmit_IT(). And then I just retry sending the message until it succeeds.