Skip to content

Commit 0a6c072

Browse files
Declan Snydernashif
authored andcommitted
drivers: usb_dc_mcux: Debug log needs more stack
Increase the size of the MCUX USB driver thread stack if using the CONFIG_USB_DEVICE_LOG_LEVEL_DBG Kconfig, to avoid stack overflow caused by many stack frames coming from the debug logs. Signed-off-by: Declan Snyder <[email protected]>
1 parent 386f6c7 commit 0a6c072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/device/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ config USB_DC_MSG_QUEUE_LEN
183183

184184
config USB_MCUX_THREAD_STACK_SIZE
185185
int "Stack size for the USB driver"
186+
default 2048 if USB_DEVICE_LOG_LEVEL_DBG
186187
default 1024
187188
help
188189
Size of the stack used for the internal USB thread.

0 commit comments

Comments
 (0)