Page 1 of 1

ESP32-S3 upload app from USB MSC

Posted: Wed Mar 29, 2023 8:07 am
by Gienek
Hi, I'm working under USB connectivity. I need 3 stages:
- (host) during boot if bin file is present on flash drive upload it and reboot,
- (host) when app is launched use flash drive MSC to store logs,
- (slave) when master is detected with additional circuit, set device in CDC mode. I would prefer MODBUS via USB but it is preserved for later consideration.

Now I want to get to know how to implement bootloader with USB MSC? I have some code for STM32 but now I want to make similar functionality for ESP32-S3.
I have used examples for MSC, detected device, loaded data from file, saved log.
I have seen some information about using TinyUSB.
Is it only transfering binaries to specyfic region of FLASH and rebooting?