STM32H747I-DISCO Virtual Com via USART
I may be reading the disco board manual incorrectly, but it leads me to believe that I should be able to write to USART1 and have it show up on the virtual com port in windows.
I have my logic analyzer tapped into pins PB14/PB15, which are thankfully exposed on the STMod+ connector, and the logic analyzer is able to see the expected data coming across the pins.
I've tried:
- Configuring just the USART (not the USB VCP middleware), sending via HAL_UART_Transmit
- Configuring the USART and USB VCP middlewareand sending via HAL_UART_Transmit
- Configuring the USART and USB VCP middlewareand sending via CDC_Transmit_FS
- Configuring just the USB VCP middlewareand (not USART) sending via CDC_Transmit_FS
If I do 1 or 2, I can see the data coming out of the USART pins via the logic analyzer. When I do 3 or 4, CDC_Transmit_FS returns USBD_BUSY as it seems like the USB CDC isn't fully initialized. I found another post about this and apparently there used to be a bug in the library, but I tried adding timeouts and messing without other stuff and nothing that seemed reasonable had any results.
Ideally I can just use USART1 and HAL_UART_Transmit and get that stuff to come out of the Virtual COM Port - is that how it's supposed to work? I have a USB->RS232 adapter coming in the mail tomorrow, which'll help me diagnose further, but I figure I'd ask to see if my expectations around the VCP are reasonable.
Cheers,
Najati
