espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.5k stars 7.39k forks source link

ESP32 OTA with GSM results in Checksum Error #6833

Open mightChamp opened 2 years ago

mightChamp commented 2 years ago

Board

ESP32 WROOM 32D

Device Description

SIM800L on Uart 2 (Pin 25(RX), 26(TX)) GPS TX on RX0 Pin.

Hardware Configuration

GPIO 21 and GPIO 22 for I2C

Version

v2.0.3

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

We are using ESP32 WROOM -32D, On ESP32 RX0 and TX0 pin is used for uart debugging and Programming. and Uart2 on pin 25(RX), 26(TX) is used with a GSM Module. We are doing OTA with GSM by http get method. Till now no issue occurs and OTA works perfectly fine. Then We added a GPS on RX0 (due to all other pin are used for other purpose) and removed debugging, and now GPS send NEMA Frame each second on ESP32 RX0 Pin. Now when doing OTA by GSM, We are not using MD5 Checksum and firmware's all the byte are received by ESP32, but we get Checksum fail error at end. Error Message : E (9587789) esp_image: Checksum failed. Calculated 0x57 read 0x48 Could Not Activate The Firmware Update not ended

Sketch

Not Available

Debug Message

At Command Len:0 Type: 0GSM TX: AT+QIRD=0,0
[13:23:29.001] Ans: 1, GSM RX: 
+QIRD: 641897,640749,1148

OK

At Command Len:0 Type: 0GSM TX: AT+QIRD=0,1148
[13:23:29.127] Ans: 1, GSM RX: 
+QIRD: 1148

[13:23:29.143] ð¨Œ%ÎýK$ðð6A
[13:23:29.160] 
 100%
[13:23:29.478] E (9587789) esp_image: Checksum failed. Calculated 0x57 read 0x48
Could Not Activate The Firmware
Update not ended
=== Update successfully completed. Rebooting.
[13:23:31.800] Restart GSM and ControllerGPS Disabled
[13:23:34.479] ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10864
load:0x40080400,len:6432
entry 0x400806b8

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

microElabDevelop commented 2 years ago

i m facing thy same isue u find any solution . my file size grater then 1 mb controller esp32 16 mb compiler arduino. ota_error3