You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and used python3 /components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate factory_data_0.15.2.csv factory_data.bin 0x4000
to create a NVS binary image
Then used python3 /components/nvs_flash/nvs_partition_tool/nvs_tool.py factory_data.bin -f text
github-actionsbot
changed the title
nvs_tool.py extracts strings wrongly in json format
nvs_tool.py extracts strings wrongly in json format (IDFGH-14504)
Jan 23, 2025
Answers checklist.
General issue report
I created a CSV file containing some factory data:
and used
python3 /components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate factory_data_0.15.2.csv factory_data.bin 0x4000
to create a NVS binary image
Then used
python3 /components/nvs_flash/nvs_partition_tool/nvs_tool.py factory_data.bin -f text
which says (emtpy stuff not shown):
Then I tried using the JSON output, which I piped to jq to filter stuff:
python3 nvs_tool.py -f json factory_data.bin | jq '.pages[].entries[]|select(.key == "hw_version")'
which returns:
Obviously the data.value entry is wrong. I checked the nvs_parser.py code to find:
... which is exactly what I get, but that is obviously wrong!
The text was updated successfully, but these errors were encountered: