esphttpd icon indicating copy to clipboard operation
esphttpd copied to clipboard

Wrong firmware address while write data to spi flash

Open canximan opened this issue 9 years ago • 1 comments

I found this bug, hope this help. cgiflash.c line 180, change state->address=def->fw1Pos; to

if (system_upgrade_userbin_check()==1) {
     state->address=def->fw1Pos;
} else {
    state->address=def->fw2Pos;
}

Don't forget include "upgrade.h"

canximan avatar Jun 24 '16 10:06 canximan

Many thanks ! I have passed lot of time to find the issue when I upgrade the user2.bin now work fine to found you post

Thierry,

ThierryC49 avatar Feb 28 '19 22:02 ThierryC49