This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ram size reduction options with zephyr

hello Nordic

i am want to run an ncs based application (that is running on nrf52840, -> trying to create single code for 2 boards i have), when i set to run the same application on the nrf52832 i see compilation fails cause not enough space for ram. so to see where i stand and how/what i can reduce in ram i tested how much ram is taken for the simplest peripheral example.

here are the results:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Path Size %
==============================================================================================================
Root 30888 100.00%
├── (hidden) 3065 9.92%
├── (no paths) 5076 16.43%
│ ├── SystemCoreClock 4 0.01%
│ ├── _SEGGER_RTT 168 0.54%
│ ├── __compound_literal.0 24 0.08%
│ ├── __compound_literal.1 24 0.08%
│ ├── __compound_literal.10 20 0.06%
│ ├── __compound_literal.11 20 0.06%
│ ├── __compound_literal.12 24 0.08%
│ ├── __compound_literal.13 20 0.06%
│ ├── __compound_literal.14 12 0.04%
│ ├── __compound_literal.15 9 0.03%
│ ├── __compound_literal.16 4 0.01%
│ ├── __compound_literal.17 10 0.03%
│ ├── __compound_literal.18 8 0.03%
│ ├── __compound_literal.19 20 0.06%
│ ├── __compound_literal.2 28 0.09%
│ ├── __compound_literal.20 4 0.01%
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

it takes almost half the ram of the nrf52832

 and it seems to me very poor situation, any ideas how can i reduce ram take with ncs ? 

obviously i have many more things on my app that i will try to reduce but currently zephyr part in my app takes 80% of the ram ... it looks like there was no way for ncs supporting the smaller socs (below nrf52840, nrf53, nrf9160 etc.)

what is your say/ advice on that matter (and ideas for reducing ram take )? 

hope to read from you soon

best regards

Ziv