AFontaine79 / Espressif-NVS-Analyzer

Dump an NVS partition binary in human readable form
MIT License
16 stars 2 forks source link

Stacktrace when analysing nvs #2

Open crasu opened 2 months ago

crasu commented 2 months ago

When running this on my dumped esp32 nvs I get the following error:

Traceback (most recent call last):
  File "/home/christian/projects/Growatt_ShineWiFi-S/SRC/ShineWiFi-ModBus/./analyze_nvs.py", line 368, in <module>
    main()
  File "/home/christian/projects/Growatt_ShineWiFi-S/SRC/ShineWiFi-ModBus/./analyze_nvs.py", line 350, in main
    parse_nvs_binary(input)
  File "/home/christian/projects/Growatt_ShineWiFi-S/SRC/ShineWiFi-ModBus/./analyze_nvs.py", line 276, in parse_nvs_binary
    scan_in_page(input[page_base:page_base+PAGE_SIZE], page_idx)
  File "/home/christian/projects/Growatt_ShineWiFi-S/SRC/ShineWiFi-ModBus/./analyze_nvs.py", line 226, in scan_in_page
    namespace_name = ns_idx_to_name[entry_ns]
orzel commented 3 days ago

I got the same, and also another one :

    entry_key = entry_key_data.decode('ascii')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 1: ordinal not in range(128)