Hi hopefully someone can help me.
When I add a call to USBD_Initialize(0U); USBD_Connect(0U); the code embedded wizard code doesn't run from Keil (Black screen one half and fuzzie the other) . Also if I take away thread code to start embedded wizard the usb_intialise and connect works and I am able to see my mass storage (sd card) on my STMF469Disc.
Heres my Code
#ifdef RTE_CMSIS_RTOS2
/* Initialize CMSIS-RTOS2 */
osKernelInitialize ();
USBD_Initialize(0U); /* USB Device 0 Initialization */
USBD_Connect (0U); /* USB Device 0 Connect */
/* Create application main thread */
osThreadNew(EmWiMainLoop, NULL, &app_main_attr);
/* Start thread execution */
osKernelStart();
#endif
Thanks Connor