HardFault after several hours with CDC USB_HOST_M7, USB_OTG_HS
Product: RIVERDI RVT70HSSNWC00-B with STM32H757XIH6
STM32Cube FW_H7 V1.11.1
TouchGFX 4.25.0
CubeIDE 1.16.1
FreeRTOS 10.3.1, CMSIS_V2
I am using the code attached in usb_host.c to read data from a USB Virtual COM barcode reader. The .ioc file is also attached.
The code runs fine, however after some hours I get a hard fault. This happens only when the USB-scanner is plugged in. If nothing is plugged to USB it runs fine. I don't do anything with the barcode reader - it is just plugged in and the hard fault occurs.
I already tried the following:
- USBH_CDC_BUFFER_SIZE 1024 to 2048
- #define USBH_PROCESS_PRIO osPriorityLow to osPriorityNormal
- #define USBH_PROCESS_STACK_SIZE ((uint16_t)4*2048) between 512 and 8192
- STM32Cube FW_H7 V1.11.2
Any help would be very much appreciated.
