ESP8266 Developer Zone The Official ESP8266 Forum 2018-03-04T20:18:01+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=4942 2018-03-04T20:18:01+08:00 2018-03-04T20:18:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4942&p=19524#p19524 <![CDATA[Re: OTA Upgrade fail - CRC mismatch in ESP8266 using RTOS SDK 1.5]]> I met the same problem as you did.
some bin files work but some files have CRC check problem when upgrade.
I found when the highest bit of uint32 result of CRC checking is 1, the CRC value saved inside flash is the complement code of result. when the highest bit is 0, these 2 are equal.
I don't know why this happens, but may give you a solution of upgrade.
regards
Min

Statistics: Posted by Min — Sun Mar 04, 2018 8:18 pm


]]>
2017-06-07T03:35:09+08:00 2017-06-07T03:35:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4942&p=13752#p13752 <![CDATA[Re: OTA Upgrade fail - CRC mismatch in ESP8266 using RTOS SDK 1.5]]>
Thanks for your immediate reply.

But I have dumped the flash @0x81000 to PC via esptool.py, and compared it with my original user2.bin, it's the same.
The image crc (image downloaded from server) and the flash crc (image written into flash) are not equal.
if I take out this function upgrade_crc_check(), fimrware upgrade is successful, but this is not right way of doing as I am by passing CRC check.
sometimes image CRC and flash CRC matches and some times do not match. Most of the times it does not match.

As I asked earlier does debug prints to console causing any problem? I tried taking them out and still no luck, but not sure if I have taken it out completely though.

Is there any fundamental problem in the RTOS SDK 1.5 which is failing CRC check? what is the solution for this, as this is a serious problem.

For sure there is some hidden issue in the RTOS SDK 1.5 or I am missing some setting related to IROM checksum

Any urgent help or suggestion or solution will be highly appreciated.

Thanks,Regards,

Statistics: Posted by Cherry — Wed Jun 07, 2017 3:35 am


]]>
2017-06-06T15:16:40+08:00 2017-06-06T15:16:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4942&p=13738#p13738 <![CDATA[Re: OTA Upgrade fail - CRC mismatch in ESP8266 using RTOS SDK 1.5]]> Statistics: Posted by Her Mary — Tue Jun 06, 2017 3:16 pm


]]>
2017-06-06T12:23:03+08:00 2017-06-06T12:23:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4942&p=13729#p13729 <![CDATA[OTA Upgrade fail - CRC mismatch in ESP8266 using RTOS SDK 1.5]]>
I am using ESP8266 latest RTOS SDK version 1.5. I do OTA upgrade using custom server.
Sometimes OTA upgrade is successful and sometimes OTA upgrade is not successsful even though correct image is flashed.
I see Image CRC and Flash CRC does not match. I expected printing to the serial console i.e. debug prints affecting CRC.
How to solve this problem. How image CRC and flash CRC is calculated? Do I need to change any settings in make file for generating correct checksum.
Do I need to remove debug prints to serial console, in order to not affect checksum?
what is IROM checksum?
Can any one kindly explain in detail.

Thanks,Regards,
Cherry.

Statistics: Posted by Cherry — Tue Jun 06, 2017 12:23 pm


]]>