STM32F429I-Disc1: Windows 10 fails to recognize Virtual Com Port after configuring USB_OT_FS with cubeMX.
I am using a STM32F429I-Disc1 board and configured my project as follows:
USB_OT_FS:
USB_DEVICE (middleware):
All parameter settings are default and nothing has been changed. I also increased the minimum heap and stack size for the project :
Clock config:
What Im trying to achieve is just sending simple data over the VCOM port.
The while loop:
while (1)
{
// usbBuffer is now just a simple buffer containing "Hello World" for debugging
// (declared outside scope)
CDC_Transmit_FS(usbBuffer, strlen((char *)usbBuffer));
// Toggle LED for debugging
HAL_GPIO_TogglePin(GPIOG, GPIO_PIN_13);
HAL_Delay(500);
}I debugged the "MX_USB_DEVICE_Init" function that cubeMX generated (and gets called before the while loop) and everything seems to initialize normally. (no error handlers being called, timeouts etc.)
The project compiles without any errors or warnings and when flashing on the board nothing out of the ordinary happens when debugging:
- Transmit function gets called and runs to completion
- Debug Led gets toggled on/off
However when look for my board in Windows Device Manager it is nowhere to be found:
Only the STLink debugger VCOM is detected and I am running out of options here.
What I have tried so far:
- Reinstall the aforementioned driver
- Further increase the size of the stack and heap
- Tweaking the clock configuration in cubeMX
Hopefully someone knows what I have overlooked here. All help is appreciated, thanks in advance.
