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.

Parents Reply
  • You could try to run zephyr/samples/drivers/soc_flash_nrf to see if that is working and confirm whether it's a problem with the driver or its use in your application. As Vidar suggested though, you should try to ask on the Zephyr mailing list or IRC. The file you are debugging is indeed 100% part of Zephyr and not of the "Nordic device driver implementation" (I guess you meant nrfx).

Children
Related