Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zephyr nRF52 flash driver

I plan to use the flash device driver from Nordic (52840) in a Zephyr system. My plan is to use the <flash.h> api but it seams that this api is not available in a default configuration.

I have experimented with this parameters from the project::

CONFIG_FLASH_NRF=y
CONFIG_FLASH_HAS_DRIVER_ENABLED=y

And it's obviously not working because ->

flash_dev = device_get_binding(FLASH_DEV_NAME);

returns NULL.

Related