osThreadTerminate() kills the application when called in usb_host.c.
Here's my USBH_UserHostProcess():/* * user callback definition */ static void USBH_UserProcess (USBH_HandleTypeDef *phost, uint8_t id) { /* USER CODE BEGIN CALL_BACK_1 */ switch(id) { case HOST_USER_SELECT_CONFIGURATION: break; cas...