ESP32-POE will not reliably boot and unable to flash

Started by justlikeef, November 21, 2022, 02:39:51 am

Previous topic - Next topic

justlikeef

November 21, 2022, 02:39:51 am Last Edit: November 21, 2022, 02:42:29 am by justlikeef
I have two boards that I successfully flashed esphome to, but after running for several minutes, they will no longer boot and will not flash.

one of them crashes immediately after boot:
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x1f (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
[I][logger:258]: Log initialized
[C][ota:469]: There have


and the other does this over and over:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff



Attempting to flash either gives one of several errors:

A fatal error occurred: Failed to connect to ESP32: No serial data received.
Invalid head of packet (0x0D): Possible serial noise or corruption.




I have tried various baud rates and placing various combinations of the 10mf cap and 2K resister between en and 3.3 and en and ground.  I don't have the capability of replacing the surface mount resister, but I can work with someone to troubleshoot.

I have replaced the USB cable and tried a powered hub.  Putting a scope on the 5V pin looks pretty stable.

LubOlimex

Software downloaded usually doesn't affect the ability to program via the USB. Try another USB port, try another software for programming. Maybe re-install the CH340T drivers, you can find suitable ones at the product page.

You don't need to solder around the EN, if you wish to have a boot button, we have provided a way to transform user button BUT to boot button. Unsolder resistor R47 and solder it on the pads of resistor R49. Refer to the schematic in the "Buttons" area to understand better.
Technical support and documentation manager at Olimex

justlikeef

I have tried on multiple machines and they behave the same.

I don't have the capability of soldering the SMD components.  I am using the headers.

LubOlimex

But did you try different software tool?

Maybe try with Arduino for ESP32, since it is well detailed how to install. Just try to upload anything to see if the upload works.
Technical support and documentation manager at Olimex

justlikeef

I have tried the esphome web tool and the command line esptool.  I get a similar response from both.

LubOlimex

Now that I look your older replies about forcing bootloader mode without soldering:

- you can force bootloader mode by connecting GPIO0 to GND (and if that doesn't work also connect GPIO2 to GND); this should act as having pressed BOOT button

- leave EN as it is, in this design it is down to GPIO0 state not to EN.

Both GPIO0 and GPIO2 can be found at EXT1, GPIO0 is pin #5. GPIO2 is pin #7. GND is pin #3.

Remember to leave forced bootloader mode you need to disconnect these connection afterwards.

Try to force this mode and if that allows for programming.
Technical support and documentation manager at Olimex

justlikeef

I didn't have time to look at them today.  Will do so tomorrow EST.