CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

jared_s
Posts: 9
Joined: Sat Oct 04, 2025 10:22 am

CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

Postby jared_s » Mon Oct 13, 2025 9:35 pm

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.

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

Postby nopnop2002 » Tue Oct 14, 2025 7:15 pm

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

jared_s
Posts: 9
Joined: Sat Oct 04, 2025 10:22 am

Re: CONFIG_TINYUSB_TASK_STACK_SIZE in menuconfig not present

Postby jared_s » Tue Oct 14, 2025 7:56 pm

Thank you. It helped and it works.

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], Qwantbot, RandomInternetGuy, Semrush [Bot] and 3 guests