I'm looking to store a batch of data in a large array in RAM and send them all at once later. I start from ble_app_template in sdk examples and add an array. My memory setting is RAM (rwx) : ORIGIN = 0x20002e70, LENGTH = 0xd190. In the code I'm only able to declare a float array with the size of around 8000. Higher than that there would be error of region RAM overflowed with stack when building the project.
Based on the memory setting, there should be about 53000 bytes available, but I could only use about 32000 bytes for the array. Do the other parts in ble_app_template main file use all the remaining 20000 bytes? Is there any way to squeeze more space to make the array larger?