CONFIG_FLASH_MAP was assigned the value y, but got the value n. Missing dependencies: FLASH_HAS_DRIVER_ENABLED

I have the following settings in my prj.conf:
# Enable the BLE stack with GATT Client configuration
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_SMP=y
CONFIG_BT_GATT_CLIENT=y

# Enable BLE scan
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_SHORT_NAME_CNT=1
CONFIG_BT_GATT_DM=y

# Enable bonding
CONFIG_NVS=y
CONFIG_SETTINGS=y
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

# Config logger
CONFIG_LOG=y
and getting the error 
CONFIG_FLASH_MAP was assigned the value y, but got the value n. Missing dependencies:
FLASH_HAS_DRIVER_ENABLED
My understanding is that FLASH_HAS_DRIVER_ENABLED is not set directly, but by inclusion of some config that assures that flash drivers will be included.
I have the same flash setting in another project and it is working...
Using v2.8 SDK and Toolchain.
Running on nRF52840.
Your input is greatly appreciated!
  • Hello,

    My understanding is that FLASH_HAS_DRIVER_ENABLED

    that is correct. Are you building for the nrf52840dk/nrf52840, or do you have some custom board?

    Is there any way for me to reproduce what you are seeing? 

    I suspect this is either a board problem, if you have a custom board, or that it is some toolchain/configuration issue.

    Can you also share your entire build log? Including the build command in the very beginning.

    Best regards,

    Edvin

  • Sorry for the delay - the site was not letting me reply. I'm going to try replying without the log, and see if that will get through.

    So you can repro, I create a new application using the bluetooth central sample from the 2.8.0 samples.

    I created a build using SDK and toolchain 2.8.0 using the nRF52840dk_nRF52840 board.

    I built to ensure that all was good.

    I then modified the prj.conf to match the above, and got the same error (and discovered there were others).

    Thanks!

  • Nope - I couldn't even post 10 lines of the log. No idea why. I get "An error occurred. Please try again or contact your administrator."

  • DevZone is a bit flaky sometimes. Perhaps it works now if you try again.

    I tried to add the above at the end of prj.conf in the NCS v2.8.0\nrf\samples\bluetooth\peripheral_uart (but I couldn't remove what was already there, because that would cause it to fail due to undefined references to e.g. buttons or UART). 

    It built without any errors/warnings.

    What sample were you using? Is it possible to zip the application folder of the sample you were using, and upload it here? (let us hope DevZone behaves this time). Also, what build command are you using? It is possible to copy it if you are using VS Code by right clicking the build folder in the "Applications" menu.

    Best regards,

    Edvin

  • It was the bluetooth central sample: zephyr/samples/bluetooth/central. I created it and then added the prj.conf lines and that should repro for you (unless my install is not right somehow).

Related