OTA error during flash writing

davemclaughlin
Posts: 1
Joined: Fri Sep 23, 2016 4:14 pm

OTA error during flash writing

Postby davemclaughlin » Fri Sep 23, 2016 5:48 pm

I am getting errors when I try to do an OTA on any of the devices I have. All are 4Mbyte FLASH and ESP12E based. Sometimes it passes and sometimes it fails.

All boards are powered presently from USB (500mA each port) and monitoring the voltage it remains stable at around 5.12 volts. Max current is around 110mA during the flashing. On the breadboard I have a 10uF cap on each of VIN and 3.3V rails.

I enabled some debugging before the call to spi_flash_write and this was the output with the error. I am only showing the write before after the error.

Code: Select all

write addr: 0x00234e58, len: 0x05b4
write addr: 0x0023540c, len: 0x05b4
write addr: 0x002359c0, len: 0x05b4
E:M 5856
write addr: 0x00235f74, len: 0x05b4


It fails almost 99% of the time at the same memory location and occasionally a few others.

The 4Mbyte FLASH is set for 40MHz and DIO mode.

pratik

Re: OTA error during flash writing

Postby pratik » Fri Sep 30, 2016 6:42 pm

Seems like writing to that location is fine on my 4MByte flash.
Try introducing a small delay before writing to that block and see if it helps?

Who is online

Users browsing this forum: No registered users and 54 guests