I love the NRF9160 feather, and associated documentation. I’ve been working on getting the NRF9160 running with both networking and persistence. However, I’ve had issues getting networking and persistence to play nicely together.
Reproducing the error is simple. With an NRF9160 feather, flashing the “external_flash” example to the NRF feather works as expected, with the boot_count being displayed.
However, if one changes prj.conf of the example to add “CONFIG_NETWORKING=y”, things get wonky. The example will build cleanly. However, upon flashing, execution does not run as expected. I receive:
*** Booting Zephyr OS build v2.6.99-ncs1-1 ***
Area 1 at 0x0 on W25Q32JV for 4194304 bytes
[00:00:00.211,730] <inf> littlefs: LittleFS version 2.2, disk version 2.0
[00:00:00.220,520] <inf> littlefs: FS at W25Q32JV:0x0 is 1024 0x1000-byte blocks with 512 cycle
[00:00:00.230,438] <inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.253,021] <inf> littlefs: /lfs mounted
/lfs mount: 0
/lfs: bsize = 16 ; frsize = 4096 ; blocks = 1024 ; bfree = 1019
/lfs/boot_count stat: 0
fn 'boot_count' siz 4
FAIL: open /lfs/boot_count: -16
[00:00:00.293,792] <inf> littlefs: /lfs unmounted
/lfs unmount: 0
I would love to know your thoughts on this - thanks so much for your help!