Hi,
I would like to write a string to flash in mqtt_simple SDK example using latest modem firmware and ncs v1.4.0. I based my code off the zephyr example (samples/subsys/nvs/src/main.c)
Added the following to proj.conf
and the following functions to mqtt_simple
Then in main()
It compiles and runs but I get the following error in LTE Link Monitor which causes a cyclic reboot:
I tried running the example code given in this post:
https://devzone.nordicsemi.com/f/nordic-q-a/52095/nrf9160dk-storing-to-and-reading-from-flash
and here:
https://devzone.nordicsemi.com/f/nordic-q-a/47275/why-doesn-t-nvs-write-data-to-flash-correctly
but they both use:
DT_FLASH_AREA_STORAGE_OFFSET and DT_FLASH_DEV_NAME
which return as undefined in my project. Seems like defining these and replacing:
FLASH_AREA_OFFSET(storage) and DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL)
would solve my problem.
Thoughts?
Thank you,
Robert