Question
CubeMX - STM32L1 USB CDC
Posted on May 12, 2015 at 09:45
Hello,
I have set up a CubeMX project with USB FS and CDC enabled. The device is STM32L151CCT6.Also, I have installed the VCP 1.4.0 drivers for Win7 (x64).When I start the debug session (IAR 7.40), Windows complain that the device is unknown and of course is not shown on the COM port list.Moreover I use the following code in my USB gatekeeper thread, to avoid illegal usage of the device:while (hUsbDeviceFS.dev_state != USBD_STATE_CONFIGURED)
{ osThreadYield ();}but it never goes through that check. Thedev_state
always evaluates toUSBD_STATE_DEFAULT
.Any thoughts? Thanks!Best regards,George #cubemx #stm32l1