Closed n3b0j5a closed 12 months ago
This solves SPI flash error.
#define ESPNOW_OTA_PACKET_MAX_SIZE ((ESPNOW_DATA_LEN - 4) - (ESPNOW_DATA_LEN -4) % 16) /**< Maximum length of a single packet transmitted */
However, process stops after last chunk is received. Still investigating....
@n3b0j5a You're right, flash must be written in 16 bytes blocks when encryption is enabled. What's the length of the last chunk data?
@lhespress Encrypted firmware is padded anyway, that should not be a problem. I made patch fix that resolve this issue: https://github.com/espressif/esp-now/pull/80
Can someone take a look at pull requests? I really need that fixes merged.
Thanks!
I have two boards, one based on ESP32-S3 as an initiator and another one based on ESP32-C3 as responder and I'm trying to use S3 board to download update for C3 and push it. I customized OTA download process a bit to achieve 2 things:
Both chips are development encrypted. However, when trying to transfer firmware to C3 device, i get the error code:
I suspect that this is due to the fact that flash must be written in 16 bytes blocks when encryption is enabled.
Demo code listing for initiator: