I am attempting to build and run the Zephyr NVS sample (https://docs.zephyrproject.org/latest/samples/subsys/nvs/README.html) on the 52840 using the nRF connect extension for VS code. The build I selected in VS code was nrf52840dk_nrf52840 as this is the closest option but I am using a custom board with a 52840 not the development kit so I wasn't sure if this was an issue. The build works and flashes correctly but I just get an infinite loop of:
00> [00:00:00.256,225] <dbg> fs_nvs.nvs_recover_last_ate: Recovering last ate from sector 0
00> [00:00:00.262,695] <inf> fs_nvs: 3 Sectors of 4096 bytes
00> [00:00:00.262,725] <inf> fs_nvs: alloc wra: 0, f78
00> [00:00:00.262,725] <inf> fs_nvs: data wra: 0, c4
00> [00:00:00.256,225] <dbg> fs_nvs.nvs_recover_last_ate: Recovering last ate from sector 0
00> [00:00:00.262,695] <inf> fs_nvs: 3 Sectors of 4096 bytes
00> [00:00:00.262,695] <inf> fs_nvs: alloc wra: 0, f70
00> [00:00:00.262,695] <inf> fs_nvs: data wra: 0, c8
00> [00:00:00.256,256] <dbg> fs_nvs.nvs_recover_last_ate: Recovering last ate from sector 0
00> [00:00:00.262,725] <inf> fs_nvs: 3 Sectors of 4096 bytes
00> [00:00:00.262,725] <inf> fs_nvs: alloc wra: 0, f60
00> [00:00:00.262,725] <inf> fs_nvs: data wra: 0, cc
00> [00:00:00.256,286] <dbg> fs_nvs.nvs_recover_last_ate: Recovering last ate from sector 0
00> [00:00:00.262,756] <inf> fs_nvs: 3 Sectors of 4096 bytes
00> [00:00:00.262,756] <inf> fs_nvs: alloc wra: 0, f58
00> [00:00:00.262,756] <inf> fs_nvs: data wra: 0, d0
....
This doesn't seem to be an error, but the code just gets stuck here and never initializes as the example does. I was able to step through the code using ozone and it seems to follow a correct initialization, but it does not output any of the printk statements for some reason so I'm not sure about the status at different points.
Is there a reason it is getting stuck here, and how can I fix this?