fix: Increased stack size to allow printf to work
This commit is contained in:
@@ -67,7 +67,7 @@ void requester_task_main(void *params)
|
|||||||
|
|
||||||
// Profit (send to UART to ensure it worked)
|
// Profit (send to UART to ensure it worked)
|
||||||
char strbuf[32];
|
char strbuf[32];
|
||||||
sprintf(strbuf, "%lu\r\n", num);
|
snprintf(strbuf, sizeof(strbuf), "%lu\r\n", num);
|
||||||
HAL_UART_Transmit(&huart2, (uint8_t*)strbuf, strlen(strbuf), 9999);
|
HAL_UART_Transmit(&huart2, (uint8_t*)strbuf, strlen(strbuf), 9999);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include "task.h"
|
#include "task.h"
|
||||||
#include "FreeRTOSConfig.h"
|
#include "FreeRTOSConfig.h"
|
||||||
|
|
||||||
#define REQUESTER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE
|
#define REQUESTER_TASK_STACK_DEPTH 256
|
||||||
#define REQUESTER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
#define REQUESTER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
||||||
|
|
||||||
extern StackType_t _requester_task_stack[REQUESTER_TASK_STACK_DEPTH];
|
extern StackType_t _requester_task_stack[REQUESTER_TASK_STACK_DEPTH];
|
||||||
|
|||||||
Reference in New Issue
Block a user