esp_partition_erase_range freeze
Posted: Tue Nov 22, 2022 7:48 pm
Hi,
we have experienced some strange behaviour when using the function.
The function was used already previously where the result was as expected. The problems started after enabling the flash encryption.
1. Code same as before causes that the MCU freezes and not even a WDT cause a reset. All other tasks are as well blocked.
2. Experimentally we have putted before the call of the function a 100ms delay. After this when calling the function the WDT causes a reset.
3. Experimentally we have increased the delay to 1000ms. After this when calling the function the result is as expected.
We use esp-idf 4.4.2 and the partition size is 3MB.
Any ideas what could cause this?
Danijel
we have experienced some strange behaviour when using the
Code: Select all
esp_err_t esp_partition_erase_range(const esp_partition_t* partition, size_t offset, size_t size);
The function was used already previously where the result was as expected. The problems started after enabling the flash encryption.
1. Code same as before causes that the MCU freezes and not even a WDT cause a reset. All other tasks are as well blocked.
2. Experimentally we have putted before the call of the function a 100ms delay. After this when calling the function the WDT causes a reset.
3. Experimentally we have increased the delay to 1000ms. After this when calling the function the result is as expected.
We use esp-idf 4.4.2 and the partition size is 3MB.
Any ideas what could cause this?
Danijel