[SOLVED]create NVS bin file without nvs_partition_gen.py
Posted: Tue Nov 06, 2018 3:18 pm
Hi everybody,
we would like to pre-generate the NVS .bin partition file without the use of nvs_partition_gen.py
Currently we create a .csv file, apply the nvs_partition_gen.py script and then download the resulting .bin file to esp32 (together with application, bootloader and partition table) via esptool.py
In order to avoid this intermediate step we would like to generate directly the .bin file. Checking the documentation for entry structure
https://docs.espressif.com/projects/es ... of-entry
I'm not able to calculate the CRC32 as indicated. Just to give you an example I have an uint8_t entry (key name is "nvs_pass_count" and value is 0); the 32 bytes composing the entry (in hex format) is
As per docs, the crc 32 should "0E 8B B6 A5". However if I calculate the crc32 of the remaining part (not including 0E 8B B6 A5 bytes) I'm not able to obtain the same.
Check here:
https://crccalc.com/?crc=010101FF6E767 ... atype=hex
Where am I wrong?
Thanks
we would like to pre-generate the NVS .bin partition file without the use of nvs_partition_gen.py
Currently we create a .csv file, apply the nvs_partition_gen.py script and then download the resulting .bin file to esp32 (together with application, bootloader and partition table) via esptool.py
In order to avoid this intermediate step we would like to generate directly the .bin file. Checking the documentation for entry structure
https://docs.espressif.com/projects/es ... of-entry
I'm not able to calculate the CRC32 as indicated. Just to give you an example I have an uint8_t entry (key name is "nvs_pass_count" and value is 0); the 32 bytes composing the entry (in hex format) is
Code: Select all
01 01 01 FF 0E 8B B6 A5 6E 76 73 5F 70 61 73 73
63 6F 75 6E 74 00 00 00 00 FF FF FF FF FF FF FF
Check here:
https://crccalc.com/?crc=010101FF6E767 ... atype=hex
Where am I wrong?
Thanks