Hello,
I am using the stm32f429 discovery board from ST.
I contact TraceAnalyzer for support and I ask them the same question. Their answer was this.
vTraceEnable should not be called after vCreateQueue, it should be called before.
First you need to have your clock initiated then you can call vTraceEnable. And vTraceEnable must be called before any calls to FreeRTOS it made.
Best regards
Fredrik
One thing I am 100% sure of is if you declare a queue before vtraceenable, trace would not work.
My c code after:
…
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
#if ( configUSE_TRACE_FACILITY == 1 )
vTraceEnable(TRC_START);
#endif
#if STATIC_TASK
xSemaphore = xSemaphoreCreateBinaryStatic(&xSemaphoreBuffer);
#endif
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
…