Page 1 of 1

Serial behaviour

Posted: 20. Jan 2010, 21:28
by BeamRider
Hi all,
I wrote on the users ml, but I post same message here since I think that forum is more efficient than ml to share toughts. Here it is the problem I am experiencing ...

Running a Windows ( XP SP3 ) Guest on a Windows ( 7 x64 ) Host and using serial port to flash an STM32 MCU (no interface in the middle, just a serial).
Device recognition and setup works flawess. Onc eit sarts sending data (my program) to the MCU, it stops after the first few bytes.
Obiviously, same application with same device works on Host.

Serial port on guest is configued as COM1 host device (manually configured on guest from device manager).

After some unsuccesful tries I decide to monitor the serial port to verify guest behaviour.
Here are the results with stripped serial and device initialization since they appears to be the same in both (I have those logs if needed). The first Write is also the first big chunk of data sent (with big I mean > 10 bytes)

HOST (working)

Code: Select all

000282: Write Request (DOWN), 20.01.2010 19:19:25.303 +0.0
Buffer size: 0xfc bytes
 00 50 00 20 F1 00 00 08 EC 00 00 08 EC 00 00 08   .P. ñ...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 71 1F 00 08   ì...ì...ì...q...
 EC 00 00 08 EC 00 00 08 A1 1F 00 08 F1 1F 00 08   ì...ì...¡...ñ...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 41 70 00 08   ì...ì...ì...Ap..
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 B1 92 00 08   ì...ì...ì...±?..
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 E1 74 00 08   ì...ì...ì...át..
 EC 00 00 08 EC 00 00 08 EC 00 00 08 FE E7 00 00   ì...ì...ì...þç..
 72 B6 14 48 14 49 A0 EB 01 00 80 F3               r¶.H.I ë..?ó
000283: Write Request (UP), 20.01.2010 19:19:25.373 +0.070
Buffer size: 0xfc bytes
Status: 0x00000000

000284: Write Request (DOWN), 20.01.2010 19:19:25.373 +0.0
Buffer size: 0x1 bytes
 CA                                                Ê

000285: Write Request (UP), 20.01.2010 19:19:25.373 +0.0
Buffer size: 0x1 bytes
Status: 0x00000000

000286: Read Request (DOWN), 20.01.2010 19:19:25.373 +0.0
Buffer size: 0x0 bytes

000287: Read Request (UP), 20.01.2010 19:19:25.383 +0.010
Buffer size: 0x1 bytes
Status: 0x00000000
 79                                                y
GUEST (not working)

Code: Select all

000324: Write Request (DOWN), 20.01.2010 18:47:31.757 +0.0
Buffer size: 0xfc bytes
 00 50 00 20 F1 00 00 08 EC 00 00 08 EC 00 00 08   .P. ñ...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 71 1F 00 08   ì...ì...ì...q...
 EC 00 00 08 EC 00 00 08 A1 1F 00 08 F1 1F 00 08   ì...ì...¡...ñ...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 41 70 00 08   ì...ì...ì...Ap..
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 B1 92 00 08   ì...ì...ì...±?..
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 EC 00 00 08   ì...ì...ì...ì...
 EC 00 00 08 EC 00 00 08 EC 00 00 08 E1 74 00 08   ì...ì...ì...át..
 EC 00 00 08 EC 00 00 08 EC 00 00 08 FE E7 00 00   ì...ì...ì...þç..
 72 B6 14 48 14 49 A0 EB 01 00 80 F3               r¶.H.I ë..?ó
000325: Write Request (UP), 20.01.2010 18:47:31.766 +0.009
Buffer size: 0xfc bytes
Status: 0x00000000

000326: Write Request (DOWN), 20.01.2010 18:47:31.766 +0.0
Buffer size: 0x1 bytes
 CA                                                Ê

000327: Write Request (UP), 20.01.2010 18:47:31.766 +0.0
Buffer size: 0x1 bytes
Status: 0x00000000

000328: Read Request (DOWN), 20.01.2010 18:47:31.766 +0.0
Buffer size: 0x0 bytes

000329: Read Request (UP), 20.01.2010 18:47:40.592 +8.826
Buffer size: 0x0 bytes
Status: 0x00000102
In this last Read Request the read timeout elapsed but ... in the status appers to be a byte received (EV_RXFLAG set) but no data returned ...

Anyway you may also notice that EV_RING is set ... serial comm is three wire no handshake and i noticed RING and some other signals moving also on HOST (also on normal MCU operation).

Can someone confirm that this is a problem on VB or I have to investigate with ST?

Thanks,
Egon