Upload code without pressing EN and Boot buttons

MCUism
Posts: 52
Joined: Mon Jul 15, 2019 9:25 am

Upload code without pressing EN and Boot buttons

Postby MCUism » Mon May 04, 2020 11:33 am

Hi guys,

I'm designing a PCB with ESP32 SoC and I want to directly upload the code to the SoC without pressing the EN and Boot buttons as I don't want to have any buttons on my PCB. I would like to know a work around for this task. please help me out what circuitry should I use to do this...!

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Upload code without pressing EN and Boot buttons

Postby username » Mon May 04, 2020 12:06 pm

All you need to do it route the following signals to a header of your choice on your PCB.
Power, GND, TX, RX, EN and GPIO0.

Then you can can just use one of these to program it.
https://www.electrodragon.com/product/e ... 266-esp32/

MCUism
Posts: 52
Joined: Mon Jul 15, 2019 9:25 am

Re: Upload code without pressing EN and Boot buttons

Postby MCUism » Mon May 04, 2020 12:08 pm

username wrote:
Mon May 04, 2020 12:06 pm
All you need to do it route the following signals to a header of your choice on your PCB.
Power, GND, TX, RX, EN and GPIO0.

Then you can can just use one of these to program it.
https://www.electrodragon.com/product/e ... 266-esp32/
Hi, No I don't need an external board to program. I am anyways having an USB port on my PCB, so I want to program through USB without using the EN and BOOT buttons.

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Upload code without pressing EN and Boot buttons

Postby username » Mon May 04, 2020 12:14 pm

Oh... Then just put the same circuit on the board as the ESP32 DevKitC. Look at the schematic on this page.

https://docs.espressif.com/projects/esp ... -documents

MCUism
Posts: 52
Joined: Mon Jul 15, 2019 9:25 am

Re: Upload code without pressing EN and Boot buttons

Postby MCUism » Mon May 04, 2020 12:22 pm

username wrote:
Mon May 04, 2020 12:14 pm
Oh... Then just put the same circuit on the board as the ESP32 DevKitC. Look at the schematic on this page.

https://docs.espressif.com/projects/esp ... -documents
:D They have used buttons in that schematics. I want without them and to automatically upload the code

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Upload code without pressing EN and Boot buttons

Postby username » Mon May 04, 2020 12:27 pm

They have the buttons, but you do not need to use them. The circuit on the board takes care of the EN and GPIO line toggling when you go to flash it.

MCUism
Posts: 52
Joined: Mon Jul 15, 2019 9:25 am

Re: Upload code without pressing EN and Boot buttons

Postby MCUism » Mon May 04, 2020 12:36 pm

username wrote:
Mon May 04, 2020 12:27 pm
They have the buttons, but you do not need to use them. The circuit on the board takes care of the EN and GPIO line toggling when you go to flash it.
Oh...Is it? Are you sure? Will that work? Because after implementing I should not have issues with programming.

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Upload code without pressing EN and Boot buttons

Postby username » Mon May 04, 2020 12:46 pm

Absolutely it will work. Don't you have one of those kits? Or any of the others ones like it? IF not buy one and you will see for yourself.

You do not need to push those buttons to set it up for flash mode.

MCUism
Posts: 52
Joined: Mon Jul 15, 2019 9:25 am

Re: Upload code without pressing EN and Boot buttons

Postby MCUism » Mon May 04, 2020 12:55 pm

username wrote:
Mon May 04, 2020 12:46 pm
Absolutely it will work. Don't you have one of those kits? Or any of the others ones like it? IF not buy one and you will see for yourself.

You do not need to push those buttons to set it up for flash mode.
I do have one....that's why I've asked will it surely work :lol: . i usually press these buttons for uploading the code. I have this https://www.google.com/url?sa=i&url=htt ... AdAAAAABAH

board with me...does WROOM32 and DevKit-C differs with SoC's present on them?

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Upload code without pressing EN and Boot buttons

Postby username » Mon May 04, 2020 1:06 pm

OK, great you have one. You do not need to press the buttons to get it into flash mode. If you do there is something wrong. There are many knock-offs out there that there is a issue with the timing on the GPIO0 signal which forces you do press the buttons.

The real legitimate boards that are not cheap china clones work just fine without pressing the buttons.
The Serial IC on the board have 2 extra pins routed to 2 transistors to toggle the EN and GPIO0 pins when it receives the signal from USB that it needs to be put into flashing mode.

Who is online

Users browsing this forum: MicroController and 70 guests