Moderator: Sprite_tm
#ifdef ESPFS_POS
CgiUploadFlashDef uploadParams={
.type=CGIFLASH_TYPE_ESPFS,
.fw1Pos=ESPFS_POS,
.fw2Pos=0,
.fwSize=ESPFS_SIZE,
};
#define INCLUDE_FLASH_FNS
#endif
#ifdef OTA_FLASH_SIZE_K
CgiUploadFlashDef uploadParams={
.type=CGIFLASH_TYPE_FW,
.fw1Pos=0x1000,
.fw2Pos=((OTA_FLASH_SIZE_K*1024)/2)+0x1000,
.fwSize=((OTA_FLASH_SIZE_K*1024)/2)-0x1000,
.tagName=OTA_TAGNAME
};
#define INCLUDE_FLASH_FNS
#endif
It does look wrong, 4096(1024+1024) is loading user2 at 0x101000 not 0x201000 as calculated.
But so far changing it has not helped.
The debug printout on the serial port says
size = 96mem addr = 1073682136, size = 96DataLen=1024
but that does not relate to any address I expect.
I will look further, but if anyone has this working .......