2012-08-03 03:20 AM
Does any one have got the USB Virtual Comm port Example for Stm f4 discovery board ??
2012-08-03 05:55 AM
Yes, I ported mine from the USB Host library v2.1.0, and connects to USART2
2012-08-03 06:21 AM
Could you share it with others?
Thanks.2012-08-03 11:56 AM
https://docs.google.com/open?id=0B7OY5pub_GfIdnREeExyRWNXbFE
2013-07-11 08:30 AM
Nice work. This is the best one I can find for STM32F4XX USB virtual COM port. I have ever found two examples from github, or their own website, but one is not compilable, and
other one has some defects in code when I run it. Thanks for sharing.2013-07-11 11:36 AM
Thanks, some effort was put into it to try and make it as clean and free standing as possible.
2013-07-11 12:11 PM
Sorry to bother again. But when I run the program, it is OK to receive data from a PC, but when I want to send some data back to PC, my program seems have a problem.
The first test I did is to connect PA2 (TX) with PA3 (RX) and I use Tera Term to send a data. I hope to see what I sent. But the program seems halt or go to exception. The second test I did is to use a CP2012 board to send a data from one COM port and hope the discovery board can receive that and send it via another COM port to PC. But it also has a problem when I sent a data from CP2102 board to the UART 2 and STM32F4 sends it back via virtual COM port to PC. I noticed if I don't put data into APP_Rx_Buffer[], the program won't halt. But I can use a LED to indicate the USART2 Rx interrupt fired. By the way, I use the GNU ARM toolchain to compile the source code. But I am not sure if that is the cause or not.2013-07-11 05:42 PM
Can you do the loopback check with the provided .HEX file?
2014-09-02 11:09 AM
Hi Clive
It works great - like all your code does ;) Yet again you have saved me a load of time and trouble... Thanks Andy.