We are in the need to create a portable pocked programmer to flash units in the field.
We currently have one now that reads a firmware.bin file from a uSD card. But that uses the TX,RX, EN & IO0. to the other ESP32 device. Works fine, however we are changing all out product to use the newer ESP-S3, and would like to take advantage of the USB feature to flash it.
We just ordered the ESP32-S3-USB-OTG Dev Board for testing. But I was curious, has anyone done this already ? Or should I be asking can this be done. Seems the https://github.com/espressif/esp-dev-ki ... s3-usb-otg is very stale for anything USB.
ESP32-S3-USB-OTG Dev Board to Flash another ESP32-S3
Re: ESP32-S3-USB-OTG Dev Board to Flash another ESP32-S3
Making progress, but stuck on putting the device into programming mode via USB.
This is what I have so far. I have 2 ESP32-S3's connected together via a male to male USB cable.
One ESP32-S3 (aka Flasher) has a uSD connected, and can read the firmware.bin file stored on it.
The other ESP32-S3 (Unit to be programmed, AKA UTBP)
I have implemented all the USB stuff on the "Flasher" so it detects when the UTBP is plugged into it.
For testing that serial works, I have the UTBP just printing the time every second.
I can read the serial data coming from the UTBP on the Flasher just fine. So all the USB & serial connection stuff is working.
My present issue is how do I put the UTBP into programming mode via USB so I can send the data ?
Do I do this via toggling the cdc & dtr using this function (which are the last 2 parameters) ?
cdc_acm_host_set_control_line_state(cdc_dev, false, false));
This is what I have so far. I have 2 ESP32-S3's connected together via a male to male USB cable.
One ESP32-S3 (aka Flasher) has a uSD connected, and can read the firmware.bin file stored on it.
The other ESP32-S3 (Unit to be programmed, AKA UTBP)
I have implemented all the USB stuff on the "Flasher" so it detects when the UTBP is plugged into it.
For testing that serial works, I have the UTBP just printing the time every second.
I can read the serial data coming from the UTBP on the Flasher just fine. So all the USB & serial connection stuff is working.
My present issue is how do I put the UTBP into programming mode via USB so I can send the data ?
Do I do this via toggling the cdc & dtr using this function (which are the last 2 parameters) ?
cdc_acm_host_set_control_line_state(cdc_dev, false, false));
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S3-USB-OTG Dev Board to Flash another ESP32-S3
Yes. Note that the DTR and RTS sequences are a bit different than the ones you'd use on an UART. The USB-JTAG-serial section of the technical reference manual has the details you need.
Re: ESP32-S3-USB-OTG Dev Board to Flash another ESP32-S3
Thanks for the tip! That worked. Now onto trying to get https://github.com/espressif/esp-serial-flasher to work with it.Yes. Note that the DTR and RTS sequences are a bit different than the ones you'd use on an UART. The USB-JTAG-serial section of the technical reference manual has the details you need.
-
- Posts: 1
- Joined: Fri Nov 10, 2023 2:10 pm
Re: ESP32-S3-USB-OTG Dev Board to Flash another ESP32-S3
Did you connect D- and D+ lines directly from the flasher board to the D- and D+ lines of the UTBP?
Who is online
Users browsing this forum: No registered users and 103 guests