VDD_SDIO for ESP32 D2WD

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

Re: VDD_SDIO for ESP32 D2WD

Postby ESP_Sprite » Fri May 26, 2017 6:06 am

Yes, it is eprfectlky capable of working on 3.3V (and actually will not work when fed with only 1.8V). The internal flash chip, however, is an 1.8V part. In order to generate the power supply for that, the ESP32 has an internal LDO to generate 1.8V from its 3.3V power supply. However, this power supply is configured on bootup, mainly from the state of the MTDI pin: if this pin is high, the power supply will output 1.8V, if it is low, it will pass through the 3.3V chip power supply.

All in all, your PCB will work just fine *if* you made sure that the ESP32s MTDI pin always has a high signal level on bootup.

wojc0008
Posts: 7
Joined: Sun May 15, 2016 10:15 pm

Re: VDD_SDIO for ESP32 D2WD

Postby wojc0008 » Fri May 26, 2017 4:05 pm

Can someone comment if the internal flash in the ESP32-D2WD is able to handle 3.3V or what is needed to adjust to allow the ESP32 to run at 3.3V? See the picture attached.
Attachments
ESP32-D2WD.jpg
ESP32-D2WD.jpg (145.21 KiB) Viewed 12606 times

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: VDD_SDIO for ESP32 D2WD

Postby ESP_igrr » Sat May 27, 2017 5:18 pm

For D2WD, power all rails except VDD_SDIO at 3.3V. For VDD_SDIO, select 1.8V voltage of the internal regulator by strapping GPIO12. Since VDD_SDIO will be at 1.8V, it must not be connected to the external 3.3V supply.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: VDD_SDIO for ESP32 D2WD

Postby WiFive » Sat May 27, 2017 5:38 pm

ESP_igrr wrote:For D2WD, power all rails except VDD_SDIO at 3.3V. For VDD_SDIO, select 1.8V voltage of the internal regulator by strapping GPIO12. Since VDD_SDIO will be at 1.8V, it must not be connected to the external 3.3V supply.
Is vdd_sdio ever connected to external supply? Isn't it voltage output?

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: VDD_SDIO for ESP32 D2WD

Postby ESP_igrr » Mon May 29, 2017 1:31 pm

One can, for example, connect VDD_SDIO to external 3.3V supply. In this case the internal regulator will be disabled automatically. The only problem with this design is that the flash chip doesn't get automatically powered down before deep sleep, so a shutdown command needs to be sent to it (and then it still draws some sleep current from the external supply).

wojc0008
Posts: 7
Joined: Sun May 15, 2016 10:15 pm

Re: VDD_SDIO for ESP32 D2WD

Postby wojc0008 » Wed May 31, 2017 2:55 am

So I have cut the trace for VDD_SDIO and strapped the MTDI pin high. I see 1.8V on the VDD_SDIO pin which is a great start.
CP2102 interface.jpg
CP2102 interface.jpg (105.72 KiB) Viewed 12573 times

Now I just need to program the ESP32 with the Windows "ESP32 Download Tool, V3.4.8". Does anyone know what settings to use? My crystal is 40MHz on my PCB.
ESP32 Programming interface.jpg
ESP32 Programming interface.jpg (133.86 KiB) Viewed 12573 times
Thank you very much,
Jamie

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: VDD_SDIO for ESP32 D2WD

Postby rudi ;-) » Wed May 31, 2017 8:39 am

hi

you can run a simple test on it, deselect your firmware file
and select the auto like this:
run_a_test.png
run_a_test.png (28.47 KiB) Viewed 12448 times
the tool check your Flash too and will select for you the right
and you see the MAC, SPI Flash Info in the dedected info window after you push start.
( without a firmware upload )





best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

wojc0008
Posts: 7
Joined: Sun May 15, 2016 10:15 pm

Re: VDD_SDIO for ESP32 D2WD

Postby wojc0008 » Wed May 31, 2017 3:47 pm

Thank you very much for the recommendations and debug help. I found the problem. I had the wrong capacitor on the crystal so the crystal was not working. The CP2102 circuit above works great! n Again thank you!

Jamie

wojc0008
Posts: 7
Joined: Sun May 15, 2016 10:15 pm

Re: VDD_SDIO for ESP32 D2WD

Postby wojc0008 » Wed May 31, 2017 10:18 pm

So I am using the ESP32-D2WD which has 16Mbits of flash internally. I can now see the MAC addresses but I am unable to program the internal flash. Can anyone see what the problem is? I have it set to QIO for the flash interface. Is that correct? Any speed recommendations for everything else? I have double checked the 3.3V power supply on an oscilloscope) and it is very good. It is solid the entire time the programmer is trying to program the flash so I know the 3.3V rail is not the problem. I have also tried different speeds for the COM port and SPI speed. I have also tried writing to different memory locations. Any help or advice would be great.
ESP32 programming interface 2.jpg
ESP32 programming interface 2.jpg (176.77 KiB) Viewed 12428 times
Thanks,
Jamie

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: VDD_SDIO for ESP32 D2WD

Postby rudi ;-) » Thu Jun 01, 2017 8:58 am

wojc0008 wrote: So I am using the ESP32-D2WD which has 16Mbits of flash internally.
the ESP32-D2WD is the version of 16MBits eMbedded flash
and! 1.8V
for 1.8V you must use the bootstrap MTDI PIN to "high" -
have you checked VDD_SDIO for 1.8V too?
the SoC itself is 3.3V powered - this is ok, but don't forget to set bootstrap pin high for VDD_SDIO 1.8V
you can use eFuses too for this - for first settings i do proposal to use bootstrap pin.
it's the sure way


best wishes
rudi ;-)

edit: ok - see that you have do the 1.8V bootstrap in your PCB - circuit
so next step, use the auto thing i posted a post before
and let set the flash tool the things automatic.



what is the output now?
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 76 guests