2025-11-28 5:54 AM - last edited on 2025-11-28 6:58 AM by Gyessine
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 */
}2025-11-28 6:12 AM
> If I initialize USB only as connectivity USB init replaces right.
What does this mean?
2025-11-28 6:21 AM