ESP-IDF: ESP32S3 DFU when USB CDC is active
Posted: Sat Oct 28, 2023 10:59 am
I have some trouble to reflash the ESP32S3 after activating the USB-CDC (tinyUSB). So basically the only option at the moment is to press the button to go into the bootloader mode at startup to reflash the device.
Now assume I have the device connected to a SBC in the field and communication is only over USB-CDC, I cannot send someone to press the button for a DFU. One could do a custom bootloader to solve this problem, but i would like to use the standard idf tools provided and I think it should work. In the menuconfig there seems also to be the option to activate DFU/runtime DFU, might this be a solution? If so, are there any examples about that, I could not find one in the ESP-IDF Examples list.
For example for the Arduino IDE there this features seems to be available:
(https://espressif-docs.readthedocs-host ... flash.html)
I cannot find anything similar for the ESP-IDF, does anyone have a suggestion how this could be done?
Now assume I have the device connected to a SBC in the field and communication is only over USB-CDC, I cannot send someone to press the button for a DFU. One could do a custom bootloader to solve this problem, but i would like to use the standard idf tools provided and I think it should work. In the menuconfig there seems also to be the option to activate DFU/runtime DFU, might this be a solution? If so, are there any examples about that, I could not find one in the ESP-IDF Examples list.
For example for the Arduino IDE there this features seems to be available:
(https://espressif-docs.readthedocs-host ... flash.html)
I cannot find anything similar for the ESP-IDF, does anyone have a suggestion how this could be done?