I have solved it myself, the problem was too little ram.
typedef struct binary_data_t {
unsigned long size;
unsigned long remaining_size;
void *data;
} binary_data_t;
size_t fpread(void *buffer, size_t size, size_t nitems, size_t offset, FILE *fp) {
if (fseek(fp, offset, SEEK_SET) != 0 ...
Search found 2 matches
- Sun Feb 07, 2021 1:20 pm
- Forum: ESP-IDF
- Topic: [SOLVED]OTA over SD SPI
- Replies: 3
- Views: 4476
- Sat Feb 06, 2021 5:13 pm
- Forum: ESP-IDF
- Topic: [SOLVED]OTA over SD SPI
- Replies: 3
- Views: 4476
[SOLVED]OTA over SD SPI
Hello, I've been trying to update the firmware of the esp32 with an sd-spi card with ota.
What i've tried it's to read the whole .bin file as a binary and store it on a char * buffer but... it doesn't work.
void try_update() {
esp_ota_handle_t update_handle = 0;
const esp_partition_t *update ...
What i've tried it's to read the whole .bin file as a binary and store it on a char * buffer but... it doesn't work.
void try_update() {
esp_ota_handle_t update_handle = 0;
const esp_partition_t *update ...