debugging. knob works, nothing else, probably

ll
Ondřej Hruška 1 year ago
parent 1bdf8d241c
commit a9c7e42e51
  1. 4
      Core/Src/freertos.c
  2. 3
      Core/Src/spi.c

@ -54,7 +54,7 @@ typedef StaticSemaphore_t osStaticMutexDef_t;
/* USER CODE END Variables */ /* USER CODE END Variables */
/* Definitions for mainTsk */ /* Definitions for mainTsk */
osThreadId_t mainTskHandle; osThreadId_t mainTskHandle;
uint32_t defaultTaskBuffer[ 128 ]; uint32_t defaultTaskBuffer[ 300 ];
osStaticThreadDef_t defaultTaskControlBlock; osStaticThreadDef_t defaultTaskControlBlock;
const osThreadAttr_t mainTsk_attributes = { const osThreadAttr_t mainTsk_attributes = {
.name = "mainTsk", .name = "mainTsk",
@ -135,7 +135,7 @@ void vApplicationMallocFailedHook(void);
/* USER CODE BEGIN 4 */ /* USER CODE BEGIN 4 */
void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName) 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 /* Run time stack overflow checking is performed if
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
called if a stack overflow is detected. */ called if a stack overflow is detected. */

@ -70,6 +70,7 @@ void MX_SPI2_Init(void)
} }
/* USER CODE BEGIN 1 */ /* USER CODE BEGIN 1 *
LL_SPI_/
/* USER CODE END 1 */ /* USER CODE END 1 */

Loading…
Cancel
Save