high RAM consumption for a BLE app

Hi all!

I have created a simple application that only turns on a led and power it off using BLE in NRF52810. The thing is that simple app uses a huge RAM (~85%) and flash. There is a way to reduce the consumption of RAM? I have seen a post were configuring some parameters to reduce the consumption, I have tried it, but it led to some errors when using BLE.

Best regards

Parents
  • Hi,

    NRF52810 have only 24kB RAM. So, for BLE S112 stack needs 3.7kB. so about 20 kB should be available for your application (free 85%).

    Further, if you use Segger, then the size of the stacks (main and process) and heap area is also indicated in the project settings. I don’t know how many you have indicated, I had these values ​​at the level of 2kB each. 

    And then you need to look at what kind of code in general you are trying to compile, what is connected and what is being used.

    For a more precise answer, indicate which SDK you are using, which stack, and also, if possible, show the code. Then the answer will be more informative.

    Regards, Max

Reply
  • Hi,

    NRF52810 have only 24kB RAM. So, for BLE S112 stack needs 3.7kB. so about 20 kB should be available for your application (free 85%).

    Further, if you use Segger, then the size of the stacks (main and process) and heap area is also indicated in the project settings. I don’t know how many you have indicated, I had these values ​​at the level of 2kB each. 

    And then you need to look at what kind of code in general you are trying to compile, what is connected and what is being used.

    For a more precise answer, indicate which SDK you are using, which stack, and also, if possible, show the code. Then the answer will be more informative.

    Regards, Max

Children
Related