Boot usb / Vin
Moderators: grovkillen, Stuntteam, TD-er
Boot usb / Vin
hello team esp. I would like to understand why some .bin esp32 are ok to flash, start well in USB, but once powered by Vin does not boot? Some versions are OK, others are not. Thank you
Re: Boot usb / Vin
Assuming you tested on the same hardware unit, what images do not boot, and which do?
When using different hardware, check out the serial chip used, as some pull gpio 0 or reset to low when not powered via USB...
NB: When flashing via USB, you need to use the -factory.bin image (at address 0), when flashing via Tools/Update Firmware button, the .bin file without factory in the name should be used.
When using different hardware, check out the serial chip used, as some pull gpio 0 or reset to low when not powered via USB...
NB: When flashing via USB, you need to use the -factory.bin image (at address 0), when flashing via Tools/Update Firmware button, the .bin file without factory in the name should be used.
/Ton (PayPal.me)
Re: Boot usb / Vin
I specify that if I feed the esp with a usb it does not boot either. The usb must make use of communication.
soft for flashing :
flash download tool 3.9.0
ESP_Easy_mega_20201227_test_ESP32-wrover-kit_4M316k OK
the mcprange xxx function is not working and I need it. That good boot on Vin
but if i flash with newer versions 24122021 or 05102021 no boot on Vin
How to reset all the esp ? when i flashed the esp32 ... espeasy is the same bud with new version....I want to try to 000000. thank u
sorry for my english
soft for flashing :
flash download tool 3.9.0
ESP_Easy_mega_20201227_test_ESP32-wrover-kit_4M316k OK
the mcprange xxx function is not working and I need it. That good boot on Vin
but if i flash with newer versions 24122021 or 05102021 no boot on Vin
How to reset all the esp ? when i flashed the esp32 ... espeasy is the same bud with new version....I want to try to 000000. thank u
sorry for my english
- Attachments
-
- Snag_14df18e2.png (53.95 KiB) Viewed 5757 times
Re: Boot usb / Vin
I'd advise to use a more recent version of ESPEasy, get it from here or use the Web-flasher (still has a somewhat older release), that will include the factory.bin files for ESP32, that should be flashed at address 0x0, and not be accompanied with the bootloader, app and partition .bin files, as these are correctly included in the factory part by the build system.
You may also want to check stability of the power supply, as ESP32 is rather sensitive to brown-outs, by variations in power supply during boot. You will need an oscilloscope or similar device to verify that, a multimeter can not measure the stability, only the average voltage. Sometimes, changing the USB cable for a better quality one is enough, sometimes you need to add a 100 nF capacitor and a 10 uF electrolytic capacitor (watch the polarity) in parallel from VCC to GND close to the ESP unit, to stabilize it. Especially the boot process may need this extra stability, as it activates the WiFi.
You may also want to check stability of the power supply, as ESP32 is rather sensitive to brown-outs, by variations in power supply during boot. You will need an oscilloscope or similar device to verify that, a multimeter can not measure the stability, only the average voltage. Sometimes, changing the USB cable for a better quality one is enough, sometimes you need to add a 100 nF capacitor and a 10 uF electrolytic capacitor (watch the polarity) in parallel from VCC to GND close to the ESP unit, to stabilize it. Especially the boot process may need this extra stability, as it activates the WiFi.
/Ton (PayPal.me)
Re: Boot usb / Vin
Thanks for his advice. What I don't understand is that some versions (one or two) are OK directly... others don't work in Vin (USB OK). My esp is plugged into a PCB powered by an LM2596 and equipped with capa. I'm still going to check with the oscilloscope but I don't believe it
another strange thing, why with the PCB powered (V in) and USB connected, it does not boot either! I also specify that I only used free GPIOs.
another strange thing, why with the PCB powered (V in) and USB connected, it does not boot either! I also specify that I only used free GPIOs.
- Attachments
-
- 2022-03-22_12-12-07.jpg (403.82 KiB) Viewed 5743 times
Re: Boot usb / Vin
Can you list the names of the .bin files that won't boot your ESP, please?
/Ton (PayPal.me)
Re: Boot usb / Vin
I think I found ... I removed the resistors on GPIO4 and GPIO5 for I2C communication and it starts!
Re: Boot usb / Vin
Ah, great you found it. Most likely the PCF or MCP board already has pull-up resistors on board, so adding more might cause issues, indeed.
/Ton (PayPal.me)
Re: Boot usb / Vin
It's very strange because I based myself on diagrams found on the net! and many make use of a pullup resistor! Thank you for the help.
- Attachments
-
- 2022-03-22_18-08-51.jpg (258.12 KiB) Viewed 5731 times
Re: Boot usb / Vin
Not booting from Vin is an issue that affected some ESP8266 variants. So not surprised to hear that the ESP32 is fussy too.
Although your ESP32's Vin boot failure may be different, here's a discussion from last year on ESP8266 boot failure:
viewtopic.php?p=53664
That discussion should give you a sense of how frustrating this issue can be. Hacking ESP boards is probably the only remedy, just as you discovered.
- Thomas
Although your ESP32's Vin boot failure may be different, here's a discussion from last year on ESP8266 boot failure:
viewtopic.php?p=53664
That discussion should give you a sense of how frustrating this issue can be. Hacking ESP boards is probably the only remedy, just as you discovered.
- Thomas
Re: Boot usb / Vin
Be careful to draw conclusions based on booting and build version.
Especially on ESP32 there is a huge difference between cold boot and warm boot (cold boot is power disconnected)
Please always use the -factory.bin file as those have the same bootloader as was the actual version when it was built.
When performing an OTA update, the bootloader may not be updated, so there is a rather big difference between serial flash and OTA update.
Especially on ESP32 there is a huge difference between cold boot and warm boot (cold boot is power disconnected)
Please always use the -factory.bin file as those have the same bootloader as was the actual version when it was built.
When performing an OTA update, the bootloader may not be updated, so there is a rather big difference between serial flash and OTA update.
Who is online
Users browsing this forum: No registered users and 89 guests