ESP32 interrupts during flashing

Resch2061
Posts: 40
Joined: Mon May 01, 2017 1:56 pm

ESP32 interrupts during flashing

Postby Resch2061 » Mon May 01, 2017 2:07 pm

Hello everyone,

I'm running into an odd issue that I'm not sure how to fix.
When I attempt to flash to the ESP32, often times it will interrupt at random percentages during the flashing.
My baudrate is set to the default of 115200 baud. I'm running Ubuntu in a VM, the USB settings are set to USB 3.0. I have an external power supply connected to the chip, and I'm using an USB cable to flash the device, the ESP32-WROVER-KIT.
The device is placed on a ESD-safe mat, which is connected to my computer case, allowing it to be ground.

Looking at the bash log when I execute the "make flash" command, everything works fine, until at random it'll quit entirely for a reason I don't quite understand.
At the moment of writing, the process is stuck at:
Writing at 0x00024000... (54 %)
There are no error messages, and when this happens, I can see the RX LED (I'm assuming it's the red one, according to the datasheets) turn off. I'm assuming connection is still established, because there are no error messages.
I'm quite confused at this odd problem, and I hope there is a solution for this oddity, because I'm quite at wit's end.
Thank you for reading.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 interrupts during flashing

Postby ESP_Sprite » Tue May 02, 2017 1:24 am

Can you try flashing in your host OS, not in a VM? Could be that your virtualization is messing things up. Esp-idf is available for MacOSX and Windows as well, in case you did not know.

Resch2061
Posts: 40
Joined: Mon May 01, 2017 1:56 pm

Re: ESP32 interrupts during flashing

Postby Resch2061 » Wed May 03, 2017 2:47 pm

Thank you for the reply,

Interestingly enough it seems this occurs entirely at random. I haven't had this issue happen to me again after rebooting my computer. I'm still at loss as to why it happens though. If it's something that happens inside the hardware itself, then of course I wouldn't know :lol:

iosixllc
Posts: 71
Joined: Fri Mar 17, 2017 12:13 am

Re: ESP32 interrupts during flashing

Postby iosixllc » Thu May 04, 2017 4:06 am

The flash process seems to be pretty time-critical. If I don't have a perfect electrical connection when it starts it will never start, for instance, have to ctrl-c and restart 'make flash.'

esch_esp
Posts: 7
Joined: Mon May 08, 2017 8:54 am

Re: ESP32 interrupts during flashing

Postby esch_esp » Tue May 16, 2017 8:10 pm

Hello,

most probable it is related to the USB cable connection. Try using higher quality cable. It could also be observed when the current/voltage is at a limit.

f.h-f.s.
Posts: 215
Joined: Thu Dec 08, 2016 2:53 pm

Re: ESP32 interrupts during flashing

Postby f.h-f.s. » Wed May 17, 2017 5:38 pm

Maybe also device temperature and the quality of the usb uart chip.
For example my DOIT board off aliexpress is pretty temperamental, when it is cold it will flash and when its warm it will have a 1/3 chance of flashing. It will flash at speeds 115200 921600 that makes no difference. My Pycom LoPy however does not get warm, ~20 degrees C colder than the DOIT and flashes at any speed and no errors even at 2mbaud.

Who is online

Users browsing this forum: No registered users and 91 guests