Version 5.18a i get this error ; usbThreadError , mcu is stm32f103vet . it is working with cubemx mdk version 5 , but there is error if i will create project by keil wizard. Stack size increased . i set timing definitions correctly.Led is blinking correctly by rtx rtos.Same code was working with old version
int main(void){ GPIO_PortClock (GPIOB,true); GPIO_PinConfigure(GPIOB, 5,GPIO_OUT_PUSH_PULL,GPIO_MODE_OUT50MHZ); GPIO_PinWrite (GPIOB,5,1); /*GPIO_PortClock (GPIOC,true); GPIO_PinConfigure(GPIOC,13,GPIO_OUT_PUSH_PULL,GPIO_MODE_OUT50MHZ); GPIO_PinWrite (GPIOC,13,0);*/ osKernelInitialize(); StatusM = USBD_Initialize(0); USBD_Connect (0); if(StatusM==usbOK) osKernelStart();
Check the OS_PRIVCNT and OS_PRIVSTKSIZE in your RTX_Conf_CM.c and look how it is set in one of existing USB Device examples, as USB Component uses private stack and private threads for it's functionality.