bt_enable fails and returns code -22

Our project was previously functional when we were developing using the nrf52840dk_nrf52840 with an overlay to reconfigure for our custom pcba. We created a custom board config using the "Create a new board" thing in  nRF Connect. After adding a bunch of apparently missing CONFIGs in <custom_pcba_name>_defconfig, and copying all the dts stuff over form zephyr/boads/arm/nrf52840dk_nrf52840 the project builds, but fails in runtime on a call to bt_enable, with following output to the console:

E: Unable to get page info
E: settings_subsys_init failed (err -22)
Bluetooth init failed (err -22)
ble_init() failed

Any help on how to fix this would me much appreciated.

Thank you.

Parents Reply Children
No Data
Related