@@ -545,15 +545,23 @@ extern "C" {
545545#define MEMFAULT_PLATFORM_COREDUMP_STORAGE_REGIONS_CUSTOM 0
546546#endif
547547
548- //! Override the size of TCB memory to collect set by the FreeRTOS port. Default
549- //! behavior is to collect the entire TCB structure. This option is useful when using
550- //! FreeRTOS and coredump space is limited. In certain configurations, such as using
551- //! configUSE_NEWLIB_REENTRANT, FreeRTOS TCBs contain extra fields that are not required when
552- //! decoding coredumps. Using this option can free up coredump space for other memory regions if
553- //! needed. If `MEMFAULT_PLATFORM_FREERTOS_TCB_SIZE` is set to 0, a default value for the TCB size
554- //! is used. Please see ports/freertos/src/memfault_freertos_ram_regions.c for more info
548+ //! Set the capture size for FreeRTOS TCB structures in the coredump, when
549+ //! memfault_freertos_ram_regions.c is used.
550+ //!
551+ //! Set this to 0 to collect the entire TCB structure.
552+ //!
553+ //! The default value captures the required structure fields in each TCB used
554+ //! for RTOS Awareness by the Memfault backend, but truncates unused fields- for
555+ //! example, if FreeRTOS is configured with configUSE_NEWLIB_REENTRANT, the TCBs
556+ //! contain extra fields that are not needed for thread decode and take up space
557+ //! in the coredump.
558+ //!
559+ //! See more details here: https://docs.memfault.com/docs/mcu/rtos-analysis
560+ //!
561+ //! And see ports/freertos/src/memfault_freertos_ram_regions.c for information
562+ //! on the implementation
555563#ifndef MEMFAULT_PLATFORM_FREERTOS_TCB_SIZE
556- #define MEMFAULT_PLATFORM_FREERTOS_TCB_SIZE 0
564+ #define MEMFAULT_PLATFORM_FREERTOS_TCB_SIZE 100
557565#endif
558566
559567#ifdef __cplusplus
0 commit comments