I am trying to save some data in flash.
it works, but it corrupts the Bluetooth thread .
If I call my_settings_init(), then bt_enable(NULL) never returns.
in prj.conf I added:
--------------------------------------------------------
# config using settings store and load:
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
# in file my.overlay the storage allocated is 8 pages = 32K (8 x 0x1000)
CONFIG_SETTINGS_NVS_SECTOR_COUNT=8
------------------------------------------------------------------------
the my.overlay is as so:
added in Cmakelist.txt:
BT working is no setting system is used, setting working but currups BT.
What is wrong?
Thanks