NCS: Reducing memory footprint v1.x -> v2.x

We are evaluating switching from nRF Connect SDK 1.8.0 to 2.2.0.

It looks that RAM and Flash consumption is increased in the new version.

Is it expected and is there a way to configure SDK for same consumption?

Parents
  • Hi,

    Since there has been new features added between 1.8.0 and 2.2.0, some increases of memory consumption sounds plausible, yes. The amount would vary among examples. Comparing the "same" example in the two SDK releases might not be representative, since some examples have gotten a lot of new functionality and therefore a size change reflects added functionality to the example rather than differences in the stack.

    While there is no setting to "reset" memory usage to what was used in a previous SDK, there are some things you can do for reducing size in general as described in Memory footprint optimization. Another source that you can use for reference, is the micro:bit related configuration files in the SDK. See e.g. the configuration files microbit_gatt.conf and prj_bbc_microbit.conf in the <sdk folder>\zephyr\samples\bluetooth\mesh folder.

    Regards,
    Terje

Reply
  • Hi,

    Since there has been new features added between 1.8.0 and 2.2.0, some increases of memory consumption sounds plausible, yes. The amount would vary among examples. Comparing the "same" example in the two SDK releases might not be representative, since some examples have gotten a lot of new functionality and therefore a size change reflects added functionality to the example rather than differences in the stack.

    While there is no setting to "reset" memory usage to what was used in a previous SDK, there are some things you can do for reducing size in general as described in Memory footprint optimization. Another source that you can use for reference, is the micro:bit related configuration files in the SDK. See e.g. the configuration files microbit_gatt.conf and prj_bbc_microbit.conf in the <sdk folder>\zephyr\samples\bluetooth\mesh folder.

    Regards,
    Terje

Children
No Data
Related