Running NVS sample on a custom board crashes

Hello,

I have an nRF52840 based custom board (myboard, NCS2.70)

its partitions node closely follows the nRF52840DK dts file:

both have &flash0 in the /chosen group

zephyr,flash = &flash0;

However when creating an nRF52840DK build it runs fine, while 'myboard' build crashes when mounting.

I've single-stepped both configurations and noticed that 'struct fs' is not initialized to the same values - specifically 'flash_device' member has different value.

What am I missing?

Thanks

Related