Skip to content

Out of the box error in samples/subsys/nvs with nRF52-PCA10040 #8705

@GerlichM

Description

@GerlichM

Hello,

i want to use the subsys/nvs sample with the nRF52-PCA10040 board with Zephyr version 1.12
The (unedited) sample compiles fine with cmake and ninja but after flashing the following error messages occur:

***** Booting Zephyr OS 1.12.99 *****
Flash Init failed
No address found, adding 192.168.1.1 at id 1
No key found, adding it at id 2
No Reboot counter found, adding it at id 3
Id: 4 not found, adding it
Reboot counter history: Error, no Reboot counter

screenshot at 2018-07-03 14 40 01

For some reason it cannot initialize the nvs in
...
rc = nvs_init(&fs, FLASH_DEV_NAME, STORAGE_MAGIC);
if (rc) {
printk("Flash Init failed\n");
}
...

The default configurations in prj.config are:
CONFIG_FLASH=y

CONFIG_NVS=y
CONFIG_NVS_LOG=y
CONFIG_NVS_LOG_LEVEL=4
CONFIG_REBOOT=y

Thanks!

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFxpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions