STM32 Virtual Com port example
Company  
ST Home | Microcontrollers

Index  »  ARM Cortex-M3 STM32  »  STM32 Virtual Com port example
     
   STM32 Virtual Com port example
 Moderated by :   »  STOne-32

Author
beginning argument    ( Replies received: 4 )
wmaguire   Posted 11-11-2008 at 10:43   



Registered on :
09-01-2009

Messages : 12

 OFF-Line

Hi There

I am running the STM32F103xB USB Virtual Com Port Example and with the following Hyperterminal settings, Baud Rate 115200, Stop 1, Parity None and Hardware Flow Control I can receive characters I type in Hyperterminal on the target but the USB_To_USART_Send_Data does not appear to be sending them back to Hyperterminal. I suspect it is something simple I am missing but would appreciate it if anyone out there had this problem and know of a workaround

Regards


Walt



 Profile   Quote  
franco.bassi   Posted 16-11-2008 at 10:08   



Registered on :
08-08-2009

Messages : 5

 OFF-Line

Hy Wmaguire,
I haved use the USB function trying the:
-Keil STM32 board and relative example.
-IRA stm32 DEMO BOARD and relative example.

It's working well and with Hyperterminal: I send and receive fron PC using the loop back on usart pin (connect togheder).
The hyperterminal settings are:
- 38400 baud ( but this it is not important)
- no parity ( but this it is not important)
- no control flow !!
By



 Profile   Quote  
jj.sprague   Posted 16-11-2008 at 16:00   



Registered on :
02-28-2009

Messages : 205

 OFF-Line

@ Wmaguire,

a) does your USB_To_USART_Send_Data code appear to execute correctly? Suggest that you add a simple Led blink after each char transmitted to confirm that at least the code is running.

b) disable the hardware flow control - at least for this stage of your testing.

c) identify your toolset - perhaps someone has had same issue - fixed

d) identify your hardware - (same as above)



 Profile   Quote  
wmaguire   Posted 18-11-2008 at 10:51   



Registered on :
09-01-2009

Messages : 12

 OFF-Line

Hi, thanks for the reply, I managed to get it to work by altering the USB code, so now I can send and receive characters to the USB. I also modified it to support stdin, and that works fine. I am now having difficulty using the example as intended. By this I mean, I run the app with no modifications and open up 2 hyperterminals on my pc with a null modem connection, to see if I can send an receive from one to the other. So, hyperterminal session commuicates with the virtual com port and another session communicates on a serial port. Can send characters via the virtual com port, no problems, but receiving is not good, I loose almost every second character typed. Looks like handshaking issue. Will investigate further.

Regards

Walter



 Profile   Quote  
wmaguire   Posted 19-11-2008 at 09:25   



Registered on :
09-01-2009

Messages : 12

 OFF-Line

Hi all,

I found sometime to look at the VCP code in detail. Looks like very limited design was done on the solution and therefore prone to all sorts of race conditions, both on the UART and USB side. I wonder will ST provide a better example in the future

Regards

Walt



 Profile   Quote  
On Top

Search in the forums
 
Jump To