Replies: 1 comment 1 reply
-
4096 is given for esp32 only since it requires a bit for logging/printf and esp32 has plenty of ram. For stm32 you can try with 256/512 to see if that works. Stack size could depends on dynamic event and workflow, so you still need to monitor its usage with debugger/sysview or simply printf to be sure |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the cdc_msc_freertos example, the
usb_device_task
is given 4096 words (i.e. 16KB) for its stack. Is this just an aribtrary value, or the minimum size needed for TinyUSB to function? I was quite surprised by how much RAM the task needs.In contrast, ST's USB device CDC implementation (the one that comes with CubeIDE) seems to take only a few KBs of memory.
Beta Was this translation helpful? Give feedback.
All reactions