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

SRAM overflow in Connectivity Bridge for multiple simultanous Bluetooth connections

Hi,

I am developing an application based on Connectivity Bridge and I want to establish few simultaneous Bluetooth connections. I am working in Thingy:91, currently on SDK 1.3.0, but the same problem occurs on 1.3.1, and 1.4.0. I did experience a problem in building my application after I configured BT_MAX_CONN to more than 2 (e.g. 3 and 4), and the build failed with SRAM overflow. I tried the same thing with plain Connectivity Bridge app with no modifications with the same result. The last lines from log look like that:

1> c:/nordic/v1.4.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `noinit' will not fit in region `SRAM'
1> c:/nordic/v1.4.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: section .intList VMA [20040000,200400b7] overlaps section noinit VMA [20034bc0,2004143b]
1> c:/nordic/v1.4.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM' overflowed by 5180 bytes
1> collect2.exe: error: ld returned 1 exit status
Build failed

The size of overflow is different depending on SDK, in 1.3.0 it's 4036 if I remember correctly. I noticed that playing with BLE_RX_BLOCK_SIZE and few other variables related to size of Bluetooth buffers affects the size of overflow, but I lack knowledge and experience to know how to solve this correctly.

Thanks!

Parents Reply Children
No Data
Related