I was wondering if there was a check I could perform on a partition of an esp32. probably the main App program. to check that it's still the same as before.
like a hash check?.
I currently use nvs for memory but as this is stored on a separate Partition the Hash check should still work ?
Just if a product is returned. I was wanting to confirm that the chip is not corrupt in some way.
Any thoughts would be great.
Thanks
Hash Check a partition
Re: Hash Check a partition
Maybe this can help:
https://github.com/espressif/esp-idf/bl ... ple.c#L289lildenty wrote: I was wondering if there was a check I could perform on a partition of an esp32. probably the main App program. to check that it's still the same as before.
https://docs.espressif.com/projects/esp ... -interfacelildenty wrote: Just if a product is returned. I was wanting to confirm that the chip is not corrupt in some way.
Re: Hash Check a partition
Thanks. The Hash is just what I was after.esp_partition_get_sha256(esp_ota_get_running_partition(), sha_256);
print_sha256(sha_256, "SHA-256 for current firmware: ");
I currently don't use OTA so I'm presuming I can't use the second link.
Who is online
Users browsing this forum: No registered users and 117 guests