Flashing new Code to an ESP32s3 While it is Acting as a MSC
Posted: Wed Sep 11, 2024 9:28 pm
Hi, I am working with an ESP32s3,
this Espressif MSC code - https://github.com/espressif/esp-idf/tr ... e/tusb_msc
and this Espressif Composite CDC+MSC code - https://github.com/espressif/esp-idf/tr ... rialdevice
(there is more documentation relating to this code here - https://docs.espressif.com/projects/esp ... evice.html).
I want to use my ESP32s3 as a mass storage device, where I can access the files written in the ESP32s3 via the USB port. Using this single USB port, I also want to be able to re-flash new programs onto the ESP32s3 (ideally without having to use the buttons on the ESP32s3). Basically, dual use of the USB port on the ESP32s3 (this same dual use of the UART port would be great too, although I don't think it's possible).
Right now, I am able to access the files written to the ESP32s3 as a part of the mass storage device. However, once I am able to do that after initially flashing the ESP32s3 as an MSC via the USB port, I am unable to flash a new program onto the ESP32s3 via the USB port again (I have to switch to the UART port to flash the device with new code & the USB port is basically only usable as a way to look at the files stored as an MSC).
this Espressif MSC code - https://github.com/espressif/esp-idf/tr ... e/tusb_msc
and this Espressif Composite CDC+MSC code - https://github.com/espressif/esp-idf/tr ... rialdevice
(there is more documentation relating to this code here - https://docs.espressif.com/projects/esp ... evice.html).
I want to use my ESP32s3 as a mass storage device, where I can access the files written in the ESP32s3 via the USB port. Using this single USB port, I also want to be able to re-flash new programs onto the ESP32s3 (ideally without having to use the buttons on the ESP32s3). Basically, dual use of the USB port on the ESP32s3 (this same dual use of the UART port would be great too, although I don't think it's possible).
Right now, I am able to access the files written to the ESP32s3 as a part of the mass storage device. However, once I am able to do that after initially flashing the ESP32s3 as an MSC via the USB port, I am unable to flash a new program onto the ESP32s3 via the USB port again (I have to switch to the UART port to flash the device with new code & the USB port is basically only usable as a way to look at the files stored as an MSC).