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
  • Sure, But this is not really a Zephyr component because it's part of the Nordic device driver implementation. I do agree that CONFIG_ flags is part of Zephyr but the NOR driver is Nordic. I have not used Nordics NOR driver before so I'm not sure witch part needs to be configured from a default state. I can see a that the flash geometry is there but still exception error in write_op().

Children
Related