diff options
| author | Karl Palsson <[email protected]> | 2025-10-01 10:43:22 +0000 |
|---|---|---|
| committer | Karl Palsson <[email protected]> | 2025-10-01 10:47:19 +0000 |
| commit | 1cec005f8fe9eeb0cfa8e42af9245449c18ec61b (patch) | |
| tree | 6f9d398acfec9542a6c5ac3f49a9876d7f462e56 /examples | |
| parent | 43e6c9dda7be1a38236989138e1e5693a50fb5ca (diff) | |
examples/device/*_freertos: expand stack size when needed
All four of these examples immediately crashed on stack overflow when
connected, at least on a FRDM_K64F board.
In 46fd82299040f the default freertos stack size was increased, but
_only_ for stm32? Perhaps either all platform examples need the default
increased, rather than increasing the problem task stacks as is done
here.
Signed-off-by: Karl Palsson <[email protected]>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/hid_composite_freertos/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/midi_test_freertos/src/main.c | 2 | ||||
| -rw-r--r-- | examples/host/cdc_msc_hid_freertos/src/main.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c index 69f2435ba..be8482f1c 100644 --- a/examples/device/cdc_msc_freertos/src/main.c +++ b/examples/device/cdc_msc_freertos/src/main.c @@ -37,7 +37,7 @@ #define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1) #endif -#define CDC_STACK_SIZE configMINIMAL_STACK_SIZE +#define CDC_STACK_SIZE 2*configMINIMAL_STACK_SIZE #define BLINKY_STACK_SIZE configMINIMAL_STACK_SIZE //--------------------------------------------------------------------+ diff --git a/examples/device/hid_composite_freertos/src/main.c b/examples/device/hid_composite_freertos/src/main.c index 0eb13add3..acc8f69a0 100644 --- a/examples/device/hid_composite_freertos/src/main.c +++ b/examples/device/hid_composite_freertos/src/main.c @@ -53,7 +53,7 @@ #define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1) #endif -#define HID_STACK_SZIE configMINIMAL_STACK_SIZE +#define HID_STACK_SZIE 2*configMINIMAL_STACK_SIZE //--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF PROTYPES diff --git a/examples/device/midi_test_freertos/src/main.c b/examples/device/midi_test_freertos/src/main.c index 9dd66c526..070906d0d 100644 --- a/examples/device/midi_test_freertos/src/main.c +++ b/examples/device/midi_test_freertos/src/main.c @@ -48,7 +48,7 @@ #endif #define BLINKY_STACK_SIZE configMINIMAL_STACK_SIZE -#define MIDI_STACK_SIZE configMINIMAL_STACK_SIZE +#define MIDI_STACK_SIZE 2*configMINIMAL_STACK_SIZE // static task #if configSUPPORT_STATIC_ALLOCATION diff --git a/examples/host/cdc_msc_hid_freertos/src/main.c b/examples/host/cdc_msc_hid_freertos/src/main.c index d498c1b57..4a9031278 100644 --- a/examples/host/cdc_msc_hid_freertos/src/main.c +++ b/examples/host/cdc_msc_hid_freertos/src/main.c @@ -34,7 +34,7 @@ #define USBH_STACK_SIZE 4096 #else // Increase stack size when debug log is enabled - #define USBH_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1) + #define USBH_STACK_SIZE (4*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1) #endif |
