AnsweredAssumed Answered

STM32CubeMX USB Virtual Com Port

Question asked by ApBrandy on Dec 8, 2014
Latest reply on Dec 9, 2014 by ApBrandy
Hi everybody,
I recently bought a STM32F3Discovery board for a project. I made some experiments and tried to get an idea of how it works, and then I decided to set up a VCM in order to have better feedbacks from the board and communicate with it (i.e. to set parameters "on the fly").
I have been tryin for some days, but I'm having some serious issues with that. I am using CubeMX to generate the initialization code for my project: i set up pins GPIOA11 and GPIOA12 as USB DM and DP, and selected the USB Device option under "Middlewares" (Communication Device Class). I set up some parameters and let the code be generated... and that's pretty much all. I don't get how to use it, communication doesn't work, the CDC_Transmit functions (in the automatically generated file usbd_cdc_if.c) fall into an infinite loop or something like that. I searched for some code examples, but they all work with the StdPeriph and most of them are written for the STM32F4 board...

please, help me :(

Outcomes