I create a project to learn details of settings module and code as above.
When the code running ,I try to trigger settings_save_one to save data,the function return -2.
How can I repair it?
I create a project to learn details of settings module and code as above.
When the code running ,I try to trigger settings_save_one to save data,the function return -2.
How can I repair it?
Have you managed to test with the following official sample? If not, can you have a try? It demonstrates usage of settings_save_one function.
zephyr/samples/subsys/settings
Have you managed to test with the following official sample? If not, can you have a try? It demonstrates usage of settings_save_one function.
zephyr/samples/subsys/settings
I tried the settings sample,always some places I can not understand but almost settings_save_one() will run successfully.
So I don't know where is wrong.