I am trying to increase the Peripheral/Central_Link_count to 10 for each or 20 in total and NRF_SDH_BLE_GAP_DATA_LENGTH above 200
I am getting an error when compiling "region RAM overflowed with stack" when using the settings above, I adjusted the RAM,
But I am not sure if it is the same issue :https://devzone.nordicsemi.com/f/nordic-q-a/26448/nrf52832-maximum-number-of-central-links
I can't have more than 14 NRF_SDH_BLE_TOTAL_LINK_COUNT on my app
the latest SDK 15.2 is supposed to support 20 concurrents connections, is it possible?
it is a multi-role app
You should be able to have 20 links total, but not for all configurations of those links. The amount of RAM needed for the SoftDevice increases with number of links and with data length settings, among other options. This means depending on the amount of RAM available on the SoC you may hit a limit on the number of links. In short it is a trade-off where you must keep the total amount of buffer space needed for the links low enough.
It would not be the issue that you are linking to, as that one was if you have more than 15 links as central, and you have "only" 10 central links.
The issue I am facing is can't go over 13 links count, e.g 8 Peripheral / 6 Central or any combination over 13, If I go over 13 links count the sd_ble_enable returns NRF_ERROR_NO_MEM and giving a message to change the RAM amount used for the Softdevice and the Maximum RAM size for the application, after changing these values I am unable to build my project returning the error "region RAM overflowed with stack" I am using gcc to compile my project,
I need to enable more links, but I am not sure if there are limitations on the nRF52832 to be able to do it, also I am using nRF_crypto stuff on my application and I probably could use a lot of RAM too
Uploader my memory map when I am able to compile my project using only 13 links count: