From a9c7e42e51a719845e33c2e613e5814f81f0c1a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 12 Mar 2023 03:30:09 +0100 Subject: [PATCH] debugging. knob works, nothing else, probably --- Core/Src/freertos.c | 4 ++-- Core/Src/spi.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c index aa4f7a8..3171dda 100644 --- a/Core/Src/freertos.c +++ b/Core/Src/freertos.c @@ -54,7 +54,7 @@ typedef StaticSemaphore_t osStaticMutexDef_t; /* USER CODE END Variables */ /* Definitions for mainTsk */ osThreadId_t mainTskHandle; -uint32_t defaultTaskBuffer[ 128 ]; +uint32_t defaultTaskBuffer[ 300 ]; osStaticThreadDef_t defaultTaskControlBlock; const osThreadAttr_t mainTsk_attributes = { .name = "mainTsk", @@ -135,7 +135,7 @@ void vApplicationMallocFailedHook(void); /* USER CODE BEGIN 4 */ void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName) { - printf("vApplicationStackOverflowHook\r\n"); + printf("vApplicationStackOverflowHook: %s\r\n", pcTaskName); /* Run time stack overflow checking is performed if configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is called if a stack overflow is detected. */ diff --git a/Core/Src/spi.c b/Core/Src/spi.c index 1b53c52..b83b519 100644 --- a/Core/Src/spi.c +++ b/Core/Src/spi.c @@ -70,6 +70,7 @@ void MX_SPI2_Init(void) } -/* USER CODE BEGIN 1 */ +/* USER CODE BEGIN 1 * + LL_SPI_/ /* USER CODE END 1 */