-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Description
I am trying to do some ota work in my project and needed to read the partition where ota has currently written the data.
i am using arduino 1.8.5 in mac os.
when i try to use function esp_partition_read at the last parameter as length of the data to be read when i put of more than 50 bytes esp32 restarts itself but it works fine for 10-20 bytes length.
I actually need 1024 bytes to read at same time.
'
uint8_t read_data[1025]
uint32_t ret = esp_partition_read(update, 0,
read_data,1024);
if(ret!= ESP_OK){
Serial.println("ERRRORRRR *****************");
break;
}
'
This is an decoded guru meditation error code.
Decoding 7 results
0x4008ec72: vPortYieldFromInt at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/portasm.S line 595
0x4008eb7b: _frxt_int_exit at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/portasm.S line 206
0x400e3b18: uartBegin at /Users/akshar/Documents/Arduino/hardware/espressif/esp32/cores/esp32/esp32-hal-uart.c line 368
0x4008eafc: _frxt_int_enter at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/portasm.S line 119
0x400e3b18: uartBegin at /Users/akshar/Documents/Arduino/hardware/espressif/esp32/cores/esp32/esp32-hal-uart.c line 368