NVS Key values pairs
Posted: Thu Sep 05, 2024 3:43 pm
Hi All,
I have problem in reading the nvs_keys partition when its flashed with existing binary files. let me describe it in the following steps:
1 - I have a requirement where some default keys are needed as part of the firmware initial process
2 - All keys were created with a firmware have default values
3 - Read back the nvs_key partition using the `parttool.py --port "COM1" read_partition --partition-type=data --partition-subtype=nvs_keys --output "nvs_keys.bin"`
4 - After this all flash is erased and as part of board programming process `nvs_keys.bin` is flashed using the parttool
5 - So far so good everything is working and firmware is running but when it comes to reading the NKS Keys, firmware return as those default kays does not even exist in nvs_key partition while reading the nvs_key partion return the same binary as it was written
Is there something that needs to be done as part of this process or am I missing some steps?
Thanks
I have problem in reading the nvs_keys partition when its flashed with existing binary files. let me describe it in the following steps:
1 - I have a requirement where some default keys are needed as part of the firmware initial process
2 - All keys were created with a firmware have default values
3 - Read back the nvs_key partition using the `parttool.py --port "COM1" read_partition --partition-type=data --partition-subtype=nvs_keys --output "nvs_keys.bin"`
4 - After this all flash is erased and as part of board programming process `nvs_keys.bin` is flashed using the parttool
5 - So far so good everything is working and firmware is running but when it comes to reading the NKS Keys, firmware return as those default kays does not even exist in nvs_key partition while reading the nvs_key partion return the same binary as it was written
Is there something that needs to be done as part of this process or am I missing some steps?
Thanks