I am programming firmware for the NRF52840-DONGLE. I have been able to get all the features I'm developing working, except I am now just trying to store a simple 10 digit number to the device flash but I am unable to get it working no matter what I try.
ChatGPT has been able to help write a good amount of the code, which has worked perfectly, but it is unable to figure out this piece after many days of trying. I tried the NVS sample code too, which compiled but it crashes as soon as nvs_mount is called. When I say "crash", I'm not sure if it's technically crashing or something else. Basically if I run screen to view the logs, I see them fine, but as soon as I add nvs_mount(&fs) in the code and boot it, screen just starts and terminates with no log info at all.
Any idea what could be wrong? Thanks