OpenThread memory requirements
This page provides information about the layout and the amount of flash memory and RAM that is required by samples that use the OpenThread stack. Use these values to see whether your application has enough space for running on particular platforms for different application configurations.
How to read the tables
The memory requirement tables list flash memory and RAM requirements for the Thread CLI sample that was built with OpenThread pre-built libraries.
The values change depending on device type and hardware platform. Moreover, take into account the following considerations:
The sample was compiled using the default
prj.conf
plusharnessoverlay-cert.conf
andoverlay-multiprotocol.conf
overlay files, and the correspondingOPENTHREAD_NORDIC_LIBRARY
,OPENTHREAD_THREAD_VERSION
choices.The single protocol sample was configured by setting
CONFIG_BT
ton
.Values for the Thread CLI sample, which works with all OpenThread calls, are the highest possible for the OpenThread stack using the master image library configuration.
The tables provide memory requirements for the following device type variants:
FTD - Full Thread Device.
MTD - Minimal Thread Device.
Some tables also list a master variant, which is an FTD with additional features, such as being able to have the commissioner or border router commissioning roles. See Feature sets for more information.
nRF5340 DK RAM and flash memory requirements
The following tables present memory requirements for samples running on the nRF5340 DK (nrf5340dk_nrf5340) with the software cryptography support provided by the nrf_oberon crypto library module.
FTD |
MTD |
|
---|---|---|
ROM OT stack + App [kB] |
390 |
337 |
ROM Bluetooth LE stack [kB] |
0 |
0 |
Persistent storage [kB] |
24 |
24 |
Free ROM [kB] |
610 |
663 |
RAM OT stack + App [kB] |
100 |
90 |
RAM Bluetooth LE stack [kB] |
0 |
0 |
Free RAM [kB] |
412 |
422 |
FTD |
MTD |
|
---|---|---|
ROM OT stack + App [kB] |
390 |
337 |
ROM Bluetooth LE stack [kB] |
33 |
33 |
Persistent storage [kB] |
24 |
24 |
Free ROM [kB] |
577 |
630 |
RAM OT stack + App [kB] |
100 |
90 |
RAM Bluetooth LE stack [kB] |
11 |
11 |
Free RAM [kB] |
401 |
411 |
nRF52840 DK RAM and flash memory requirements
The following tables present memory requirements for samples running on the nRF52840 DK (nrf52840dk_nrf52840) with the software cryptography support provided by the nrf_oberon crypto library module.
master |
FTD |
MTD |
|
---|---|---|---|
ROM OT stack + App [kB] |
459 |
433 |
380 |
ROM Bluetooth LE stack [kB] |
0 |
0 |
0 |
Persistent storage [kB] |
32 |
32 |
32 |
Free ROM [kB] |
533 |
559 |
612 |
RAM OT stack + App [kB] |
99 |
96 |
86 |
RAM Bluetooth LE stack [kB] |
0 |
0 |
0 |
Free RAM [kB] |
157 |
160 |
170 |
master |
FTD |
MTD |
|
---|---|---|---|
ROM OT stack + App [kB] |
459 |
433 |
380 |
ROM Bluetooth LE stack [kB] |
86 |
87 |
86 |
Persistent storage [kB] |
32 |
32 |
32 |
Free ROM [kB] |
447 |
472 |
526 |
RAM OT stack + App [kB] |
99 |
96 |
86 |
RAM Bluetooth LE stack [kB] |
17 |
16 |
16 |
Free RAM [kB] |
140 |
144 |
154 |