Skip to content

OTA update fails to replace old code when moving to 3.3.2 (maybe 3.3.1 as well) #11935

@AcuarioCat

Description

@AcuarioCat

Board

ESP32

Device Description

Custom

Hardware Configuration

Custom board

Version

v3.3.2

Type

Bug

IDE Name

Visual Micro

Operating System

Windows

Flash frequency

40

PSRAM enabled

no

Upload speed

OTA

Description

When moving from an earlier version of OTA to the latest I get the following warming message when using OTA update:

Sending invitation to 192.168.0.200
Authenticating (MD5 protocol)...OK
09:14:52 [WARNING]: ====================================================================
09:14:52 [WARNING]: WARNING: Device is using old MD5 authentication protocol (pre-3.3.1)
09:14:52 [WARNING]: Please update to ESP32 Arduino Core 3.3.1+ for improved security.
09:14:52 [WARNING]: ======================================================================
Uploading......
The upload process has finished.

The ESP32 resets but does not do a full reboot:

Progress: 100%
OTA end
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x1b (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:0x3fff0030,len:4604
ho 0 tail 12 room 4
load:0x40078000,len:15488
load:0x40080400,len:4
load:0x40080404,len:3180
entry 0x400805b8

**The new code does not replace the old code.
Manually resetting the board correctly reboots the device but with the old code still executing.

Manually updating using the COM port correctly replaces the code.**

Sketch

Any with OTA 
I have tested on different boards/hardware with the same result.

Debug Message

Progress: 100%
OTA end
11:22:16 IAS V 4.1 P 10.0 AOA V 0 P 0.0 Pitch -0.2 AOA 43.00 Raw 30.00
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x1b (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:0x3fff0030,len:4604
ho 0 tail 12 room 4
load:0x40078000,len:15488
load:0x40080400,len:4
load:0x40080404,len:3180
entry 0x400805b8

...Here it freezes until I do a manual reset....

ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_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:0x3fff0030,len:4604
ho 0 tail 12 room 4
load:0x40078000,len:15488
load:0x40080400,len:4
load:0x40080404,len:3180
entry 0x400805b8

.. from here on is my code executing as expected....

Read vx: 70 vc: 130 vStall:80 vne:220
Read arcWhite: 110 arcGreen: 160 arcYellow:220
Scanning bus 0...
I2C device found at address 0x1E  !

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions