Skip to content

Conversation

karlp
Copy link
Contributor

@karlp karlp commented Oct 1, 2025

All four of these examples immediately crashed on stack overflow when connected, at least on a FRDM_K64F board.

In 46fd822 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.

All four of these examples immediately crashed on stack overflow when
connected, at least on a FRDM_K64F board.

In 46fd822 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]>
@hathach
Copy link
Owner

hathach commented Oct 1, 2025

did it crash when you enable LOG=1,2 ?

@karlp
Copy link
Contributor Author

karlp commented Oct 1, 2025

Yes, and sure, maybe it's "not required" but surely the demos should just work ?

@hathach
Copy link
Owner

hathach commented Oct 2, 2025

if it only crash when you enabled LOG=2 (CFG_TUSB_DEBUG=2) (printf does consume some stack), then we should use ifdef CFG_TUSB_DEBUG to increase it. Not all mcu can run with increased stack size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants