ESP32-S2 flashing with built in USB
Posted: Mon Nov 09, 2020 5:29 am
The ESP32-S2 has built in USB, and the docs say it can be used to flash the device with esptool. To me it seems like a nice cost savings and space savings to be able to go without a usb to uart chip like CP2104 or CH340.
https://docs.espressif.com/projects/esp ... nsole.html
The adafruit S2 feather does not have a uart chip, but it does have a button for boot loading (no auto flash).
The ESP32-S2-SAOLA-1MI used a CP2104 for usb.
The usb to uart chip gives you DTR and RTS, that's how the standard auto flash circuit toggles EN while holding GPIO0 low. But the docs on usb just say to connect D+ and D- to GPIO19 and 20. If there were any signal like DTR and RTS it would be within the ESP32-S2.
Any chance it could work to use the built in USB for flashing, but still get the auto reset feature? I'd really like to make a dev board that can flash over usb and doesn't require pressing any buttons.
https://docs.espressif.com/projects/esp ... nsole.html
The adafruit S2 feather does not have a uart chip, but it does have a button for boot loading (no auto flash).
The ESP32-S2-SAOLA-1MI used a CP2104 for usb.
The usb to uart chip gives you DTR and RTS, that's how the standard auto flash circuit toggles EN while holding GPIO0 low. But the docs on usb just say to connect D+ and D- to GPIO19 and 20. If there were any signal like DTR and RTS it would be within the ESP32-S2.
Any chance it could work to use the built in USB for flashing, but still get the auto reset feature? I'd really like to make a dev board that can flash over usb and doesn't require pressing any buttons.