Skip to content

Commit

Permalink
drivers: usb_dc_mcux: Debug log needs more stack
Browse files Browse the repository at this point in the history
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 <declan.snyder@nxp.com>
  • Loading branch information
decsny authored and nashif committed Jun 2, 2023
1 parent 386f6c7 commit 0a6c072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/device/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ config USB_DC_MSG_QUEUE_LEN

config USB_MCUX_THREAD_STACK_SIZE
int "Stack size for the USB driver"
default 2048 if USB_DEVICE_LOG_LEVEL_DBG
default 1024
help
Size of the stack used for the internal USB thread.
Expand Down

0 comments on commit 0a6c072

Please sign in to comment.