Please let me know how to use CDC (USB device) with STM503RB to open Com port
Hi,
I'm trying to set up the CDC with my H053RB board. and I found a guide on following link.
But I realized there was issue about HardFault_Handler. it happened all the time even though I commented out the ICACHE line as below.
MX_GPIO_Init(); //MX_ICACHE_Init(); MX_USART1_UART_Init(); MX_USART3_UART_Init(); MX_USB_PCD_Init(); /* USER CODE BEGIN 2 */ while(hUsbDeviceFS.pClassData == NULL); //HAL_Delay(8); // Minimum needed delay MX_ICACHE_Init(); /* USER CODE END 2 */
/* Infinite loop */ |
I'm wondering if there are any workaround for this issue.
Thanks,
Luke.