fix: tune FreeRTOS and RTT diagnostics for runtime stability

This commit is contained in:
2026-04-23 00:00:31 +08:00
parent eeccfb84a0
commit ccd69a523e
3 changed files with 12 additions and 10 deletions
+9 -7
View File
@@ -66,7 +66,7 @@
#define configTICK_RATE_HZ ((TickType_t)1000)
#define configMAX_PRIORITIES ( 7 )
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
#define configTOTAL_HEAP_SIZE ((size_t)15360)
#define configTOTAL_HEAP_SIZE ((size_t)21760)
#define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 1
#define configUSE_16_BIT_TICKS 0
@@ -87,6 +87,8 @@
#define configTIMER_TASK_PRIORITY ( 2 )
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH 256
#define configCHECK_FOR_STACK_OVERFLOW 2
#define configUSE_MALLOC_FAILED_HOOK 1
/* Set the following definitions to 1 to include the API function, or zero
to exclude the API function. */
@@ -165,13 +167,13 @@ standard names. */
/* Application task stack sizes (in words) */
#define TASK_STACK_TCPIP 512
#define TASK_STACK_NET_POLL 384
#define TASK_STACK_TCP_SERVER 384
#define TASK_STACK_TCP_CLIENT 384
#define TASK_STACK_UART_RX 256
#define TASK_STACK_NET_POLL 512
#define TASK_STACK_TCP_SERVER 512
#define TASK_STACK_TCP_CLIENT 512
#define TASK_STACK_UART_RX 384
#define TASK_STACK_ROUTE 512
#define TASK_STACK_CONFIG 256
#define TASK_STACK_DEFAULT 128
#define TASK_STACK_CONFIG 384
#define TASK_STACK_DEFAULT 192
/* Route message pool for zero-copy inter-task communication */
#define ROUTE_MSG_POOL_SIZE 8
+1 -1
View File
@@ -45,7 +45,7 @@ void debug_log_write(const char *msg)
void debug_log_printf(const char *fmt, ...)
{
char buffer[128];
char buffer[256];
va_list args;
int len;