Question
STM32H723 problem with USB middleware initialization when FREERTOS is used
Hi!
I have a problem.
I faced with a problem of USB middleware initialization as a virtual port in CubeMX. After code generation USB init initializes in main.c within of one of task FREERTOS. If I initialize USB only as connectivity USB init replaces right. How to resolve it?
Here details is:
/* USER CODE END Header_start_task_can_handler */
void start_task_can_handler(void *argument)
{
/* init code for USB_DEVICE */
MX_USB_DEVICE_Init();
/* USER CODE BEGIN 5 */
app_start_task_can_handler(argument);
/* Infinite loop */
for(;;)
{
osDelay(1);
}
/* USER CODE END 5 */
}