Skip to content

esp_partition_read function can only read 10 to 20 bytes #2103

@akshar001

Description

@akshar001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions