You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: device/esp_tinyusb/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -349,6 +349,10 @@ To enable Mass Storage Device:
349
349
- select the option from `menuconfig`
350
350
- configure storage for MSC Device class: SPI Flash or SD/MMC (when supported by the hardware).
351
351
352
+
> **🔧 Self-powered Flash Drive**:
353
+
>
354
+
> When VBUS monitoring is enabled with `TINYUSB_PORT_HIGH_SPEED_0` (ESP32-P4 USB OTG 2.0), the storage filesystem is mounted and unmounted between the application and the USB Host based on software VBUS monitoring events. In this scenario, the Timer Task Stack Size (`configTIMER_TASK_STACK_DEPTH`) must be large enough to handle filesystem operations during detach events. It is recommended to set this value to at least 2304 bytes (2048 + 256).
ESP_LOGE(TAG, "When MSC is enabled, configTIMER_TASK_STACK_DEPTH must be at least %d bytes to handle FS operations during attach/detach events", VBUS_MON_TIMER_TASK_STACK_MIN);
0 commit comments