From 0400a391d3138800752c4301070c65707043034d Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 17 Nov 2020 06:56:56 -0500 Subject: usb: increase the stack size. It's not large enough on some targets. (this will be revisited when the USB insertion prompt stuff is moved out of the USB helper and over to the main thread) Change-Id: Iefed2cdf2fbb4ce92569fc5cacbdb479b7d24e61 --- firmware/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/usb.c') diff --git a/firmware/usb.c b/firmware/usb.c index 8c6eae9b3f..c27af4a378 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -79,7 +79,7 @@ static int usb_mmc_countdown = 0; #ifndef USB_EXTRA_STACK # define USB_EXTRA_STACK 0x0 /*Define in firmware/export/config/[target].h*/ #endif -static long usb_stack[(DEFAULT_STACK_SIZE*2 + DUMP_BMP_LINESIZE + USB_EXTRA_STACK)/sizeof(long)]; +static long usb_stack[(DEFAULT_STACK_SIZE*4 + DUMP_BMP_LINESIZE + USB_EXTRA_STACK)/sizeof(long)]; static const char usb_thread_name[] = "usb"; static unsigned int usb_thread_entry = 0; static bool usb_monitor_enabled = false; -- cgit v1.2.3