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

NO_MEM error with multi-peripheral BLE connection case questions

Hello,

I am tested multi-channel BLE peripheral connections.
(ble_app_uart example with saadc example.)

When I am testing 2-channel, it works well.

However, when I am trying to more than 3(final goal is 4),

NO_MEM error is occured in

ble_nus_chars_received_uart_print function.

I am try to size up the RAM(size, start address) but it doesn't work.

And I am finding the MTU size or other setting, I don't know which parameter or variable should be modified.

Thanks for reading my quesions.

Best Regards,

Yclee.

Parents
  • Can you confirm that you edit the TX and RX buffer sizes by changing the following defines?

    #define UART_TX_BUF_SIZE 512 /**< UART TX buffer size. */
    #define UART_RX_BUF_SIZE 512 /**< UART RX buffer size. */

    Also, what nRF52 series device are you using? The only thing that should limit the buffer sizes is the RAM itself, so it could be that the memory is full if you're using one of the lower-end modules (in terms of memory). You should also check the size of your attribute table (NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE). You can try increasing this to see if that helps as well.

    Best regards,

    Simon

Reply
  • Can you confirm that you edit the TX and RX buffer sizes by changing the following defines?

    #define UART_TX_BUF_SIZE 512 /**< UART TX buffer size. */
    #define UART_RX_BUF_SIZE 512 /**< UART RX buffer size. */

    Also, what nRF52 series device are you using? The only thing that should limit the buffer sizes is the RAM itself, so it could be that the memory is full if you're using one of the lower-end modules (in terms of memory). You should also check the size of your attribute table (NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE). You can try increasing this to see if that helps as well.

    Best regards,

    Simon

Children
Related