Writing settings during production #60615
-
I'm working on a production programming/testing/calibration rig and software for a product containing a MCU running ZephyrOS. Every device has its own default settings, containing device specific calibration, these settings are stored with settings subsytem with NVS backend. I want to write these settings with the application. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hi @allard-potma, Facing the same requirement. For now I am implementing custom shell dedicated to production/programming mode. |
Beta Was this translation helpful? Give feedback.
-
@allard-potma, @RomainPelletant, there are no plans to make a tool that can write a nvs file outside of a device. Years ago I created a little native_posix application that would be usable to write nvs settings to a bin file (by using the flash simulator): https://github.com/Laczen/zephyrmodules/tree/master/utils/native_posix/settings_preload. I don't know if this still works, but the principle should still be ok: Make a storage on native posix that replicates the flash, write to this storage and then copy. This utility never made it to the zephyr tree because there was no proper place to put it. |
Beta Was this translation helpful? Give feedback.
@allard-potma, @RomainPelletant, there are no plans to make a tool that can write a nvs file outside of a device.
Years ago I created a little native_posix application that would be usable to write nvs settings to a bin file (by using the flash simulator): https://github.com/Laczen/zephyrmodules/tree/master/utils/native_posix/settings_preload.
I don't know if this still works, but the principle should still be ok: Make a storage on native posix that replicates the flash, write to this storage and then copy. This utility never made it to the zephyr tree because there was no proper place to put it.