Search found 72 matches

by dmaxben
Mon Aug 03, 2020 9:41 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

ESP_Alvin wrote:
Mon Aug 03, 2020 9:47 am
Hi dmaxben,

Thanks for reporting, the fix on master is available on https://github.com/espressif/esp-idf/co ... 7f735b9fef

Alvin
Hi Alvin-

Thank you for looking into this.

Does this fix work on IDF-3.3?
by dmaxben
Fri Jul 10, 2020 3:34 pm
Forum: ESP32 IDF
Topic: CAN vs OTA: interrupt watchdog timeouts despite delay in OTA and IRAM_ATTR in CAN
Replies: 10
Views: 2554

Re: CAN vs OTA: interrupt watchdog timeouts despite delay in OTA and IRAM_ATTR in CAN

So far, this is working well with code in IRAM, with 300ms interrupt watchdog timeout it is not being triggered. The loss of IRAM was <2KB, whereas just moving mbed_tls buffers to IRAM recovered about 40KB. I have not yet reverted the OTA delay and tested with a large partition, will be interesting...
by dmaxben
Tue Jul 07, 2020 3:45 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

Hi dmaxben, Yes, this will be it. There is a limit to the total amount of flash which can be mapped at one time in the address space. This is a bug, we'll fix it (the routine should map the region in chunks to handle this). Not certain if this fix will be backported to v3.3, though. Angus Ah ok. Is...
by dmaxben
Wed Jul 01, 2020 6:06 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

Ok so after lots of experimentation....

It seems bootloader_mmap (and therefore SHA256 calculation) cant handle chunks >3862528 bytes.

I guess we're out of luck as far as calculating SHA256 hash of large partitions on a 16MB flash chip. :(
by dmaxben
Wed Jul 01, 2020 3:24 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

Im wondering if Im running into problems simply due to the size of the partition?

Im using a 16MB flash chip, and the SPIFFS partition is 11.4MB.
by dmaxben
Wed Jul 01, 2020 2:42 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

Im using this exact code: esp_vfs_spiffs_unregister(NULL); ESP_LOGI(TAG, "SPIFFS unmounted"); uint8_t hash[32] = {0}; const esp_partition_t *p = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_SPIFFS, NULL); ESP_LOGI(TAG, "Found spiffs"); ESP_LOGI(TAG, "SPIFFS address: %...
by dmaxben
Wed Jul 01, 2020 2:27 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

Hi Max, Thanks for providing a detailed report of what isn't working. The bug linked on GitHub was an issue introduced in ESP-IDF v4.1 development (regression when we added support for ESP32-S2 Beta), so it shouldn't be a bug in v3.x at all. I just did a quick test with ESP-IDF v3.3.1 by modifying ...
by dmaxben
Tue Jun 30, 2020 1:19 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Re: Get SHA256 of SPIFFS partition?

chegewara wrote:
Mon Jun 29, 2020 7:13 pm
https://github.com/espressif/esp-idf/issues/4586

Fixed in IDF v4.x, not fixed in v3.x.
ahh darn... so theres no way to make it work in IDF 3.x ?

Guess Ill have to work on porting my code to IDF 4.x
by dmaxben
Mon Jun 29, 2020 6:44 pm
Forum: ESP32 IDF
Topic: Get SHA256 of SPIFFS partition?
Replies: 14
Views: 1208

Get SHA256 of SPIFFS partition?

Im having some trouble getting the ESP to properly calculate the SHA hash of my SPIFFS partition. Using IDF 3.3.1 This works fine for getting the SHA256 of the running firmware uint8_t FWsha_256[HASH_LEN] = {0}; esp_partition_get_sha256(esp_ota_get_running_partition(), FWsha_256); calc_sha256(FWsha_...

Go to advanced search