Page 1 of 1

CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

Posted: Mon Oct 13, 2025 9:35 pm
by jared_s
Hi,
I want to use tinyUSB in my project. When compiled and flashed, I got this:
E (641) tinyusb_task: tinyusb_task_check_config(100): Task size can't be 0
E (645) TinyUSB: tinyusb_driver_install(114): TinyUSB task configuration check failed

(1) I checked menuconfig on how to set stackSize, but there no such item.
(2) I added this:
CONFIG_TINYUSB=y
CONFIG_TINYUSB_DEVICE_ENABLED=y
CONFIG_TINYUSB_TASK_STACK_SIZE=4096
CONFIG_TINYUSB_TASK_PRIORITY=5
CONFIG_TINYUSB_MIDI_COUNT=1

to the sdkconfig. defaults
but it didn't fix it and was never propagated to the sdkconfig

(3) I tried to define in my header and many other ways but no success.

Please, let me know how to use tinyUSB in USB OTG Mode with ESP32-P4 ETH POE dev board.

Thank you.

Re: CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

Posted: Tue Oct 14, 2025 7:15 pm
by nopnop2002
The ESP32's USB has both device and host functions.

USB OTG is a device function.

There are many examples available here.
https://github.com/espressif/esp-idf/tr ... usb/device

Re: CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

Posted: Tue Oct 14, 2025 7:56 pm
by jared_s
Thank you. It helped and it works.