diff options
| author | hathach <[email protected]> | 2026-08-11 17:07:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-09-04 04:21:57 +0700 |
| commit | a40af493a57fa99e9383290dabdcc10e1fa9a309 (patch) | |
| tree | a2fdeea60e6cb34872a171c8a9a78eb47792104f /examples/device/usbtest/src | |
| parent | 3baa7c8fbafd2cbccc5810626ebbfaa50c0ea4da (diff) | |
sysview: FreeRTOS trace hooks, stack high-water and heap tracking
hw/bsp/sysview_freertos_hooks.h maps the FreeRTOS trace macros onto
SystemView task records (task names, switches, ready/blocked) and adds heap
tracking; the FreeRTOSConfig.h of the families used on the rig include it
when SYSVIEW is on.
The FreeRTOS examples grow their USB task stacks when CFG_TU*_SYSVIEW is
enabled, the same way they already do for CFG_TUSB_DEBUG -- the
instrumentation's stack cost is real (measured overflows on lpc55 before
the bump).
Diffstat (limited to 'examples/device/usbtest/src')
| -rw-r--r-- | examples/device/usbtest/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/usbtest/src/main.c b/examples/device/usbtest/src/main.c index e57a90161..eff564e7f 100644 --- a/examples/device/usbtest/src/main.c +++ b/examples/device/usbtest/src/main.c @@ -289,8 +289,8 @@ void led_blinking_task(void* param) { main(); } #else - // Increase stack size when debug log is enabled - #define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1) + // Increase stack size when debug log or SYSVIEW instrumentation is enabled + #define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * ((CFG_TUSB_DEBUG || CFG_TUD_SYSVIEW) ? 2 : 1) #endif // static task allocation |
