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 samples that were built from sources.
The values change depending on the sample, device type, and hardware platform. Moreover, take into account the following considerations:
All samples were compiled using the default
prj.conf
plus the correspondingOPENTHREAD_NORDIC_LIBRARY
andOPENTHREAD_THREAD_VERSION
choices.The single protocol samples were optimized with the overlay
overlay-minimal_singleprotocol.conf
.The multiprotocol samples were optimized with the overlay
overlay-minimal_multiprotocol.conf
.To enable the multiprotocol support, the following options were used:
CONFIG_MPSL
set toy
(default setting for all samples)CONFIG_BT
set toy
CONFIG_BT_PERIPHERAL
set toy
CONFIG_BT_DEVICE_NAME
set to"NCS DUT"
CONFIG_BT_DEVICE_APPEARANCE
set to833
CONFIG_BT_MAX_CONN
set to1
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.
nRF52840 DK RAM and flash memory requirements
The following tables present memory requirements for samples running on the nRF52840 DK (nrf52840dk_nrf52840) with the hardware cryptography support provided by the CC310.
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
421 |
0 |
32 |
571 |
88 |
0 |
168 |
|
ftd |
395 |
0 |
32 |
597 |
84 |
0 |
172 |
|
mtd |
347 |
0 |
32 |
645 |
76 |
0 |
180 |
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
421 |
67 |
32 |
504 |
88 |
11 |
157 |
|
ftd |
395 |
67 |
32 |
530 |
84 |
12 |
160 |
|
mtd |
347 |
67 |
32 |
578 |
76 |
12 |
168 |
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
455 |
0 |
32 |
537 |
99 |
0 |
157 |
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
455 |
66 |
32 |
471 |
99 |
12 |
145 |
nRF52833 DK RAM and flash memory requirements
The following tables present memory requirements for samples running on the nRF52833 DK (nrf52833dk_nrf52833) with the software cryptography support provided by the nrf_oberon crypto library module.
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
409 |
0 |
24 |
79 |
83 |
0 |
45 |
|
ftd |
383 |
0 |
24 |
105 |
79 |
0 |
49 |
|
mtd |
335 |
0 |
24 |
153 |
72 |
0 |
56 |
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
409 |
67 |
24 |
12 |
83 |
12 |
33 |
|
ftd |
383 |
67 |
24 |
38 |
79 |
12 |
37 |
|
mtd |
335 |
67 |
24 |
86 |
72 |
12 |
44 |
nRF5340 DK RAM and flash memory requirements
The following tables present memory requirements for samples running on the nRF5340 DK (nrf5340dk_nrf5340) with the hardware cryptography support provided by the CC312.
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
381 |
0 |
24 |
619 |
94 |
0 |
418 |
|
ftd |
355 |
0 |
24 |
645 |
91 |
0 |
421 |
|
mtd |
307 |
0 |
24 |
693 |
83 |
0 |
429 |
Sample |
Variant |
ROM OT stack + App [kB] |
ROM Bluetooth LE stack [kB] |
Persistent storage [kB] |
Free ROM [kB] |
RAM OT stack + App [kB] |
RAM Bluetooth LE stack [kB] |
Free RAM [kB] |
---|---|---|---|---|---|---|---|---|
master |
381 |
22 |
24 |
597 |
94 |
7 |
411 |
|
ftd |
355 |
21 |
24 |
624 |
91 |
6 |
415 |
|
mtd |
307 |
22 |
24 |
671 |
83 |
7 |
422 |