How can I disable BT_SETTINGS?

Hello,

The firmware I'm building does not need to remember any devices it connects to and there is no pairing involved, so I'd like to reclaim the 8kB of flash used to store settings in. However, when I try to add `CONFIG_BT_SETTINGS=n` to prj.conf, VSCode tells me it's really set to `y` and sure enough when I build the image there is still an 8kB settings partition. I haven't been able to find which other config enables it. I've even tried `CONFIG_SETTINGS=n` but that also shows up as `y`.

Full prj.conf is attached. Thank you!

46804.prj.conf

Parents
  • Ok, I figured out that I needed to explicitly set

    CONFIG_BT_LBS=n
    CONFIG_BT_LBS_SECURITY_ENABLED=n

    to allow

    CONFIG_SETTINGS=n
    CONFIG_BT_SETTINGS=n

    to be handled properly and drop the settings partition.

    That technically handles my issue, but I would like to understand why LBS and LBS security were enabled by default somewhere else, and what else might be enabled behind the scenes that could be stripped out?

Reply
  • Ok, I figured out that I needed to explicitly set

    CONFIG_BT_LBS=n
    CONFIG_BT_LBS_SECURITY_ENABLED=n

    to allow

    CONFIG_SETTINGS=n
    CONFIG_BT_SETTINGS=n

    to be handled properly and drop the settings partition.

    That technically handles my issue, but I would like to understand why LBS and LBS security were enabled by default somewhere else, and what else might be enabled behind the scenes that could be stripped out?

Children
No Data
Related