I’m trying to build my application based on lwIP_demo_rowley_SAM7, but I use AT91SAM7S mikrocontroller without network, so I’ve cut out the TCP/IP stack.
I’ve decided to use this FreeRTOS example code mainly because of working USB implementation.
Everything works quite ok when I send data from PC to uC in virtual com port mode, but when I try to receive data back, the transmission hangs after random time (sometimes after few bytes, sometimes after few kilobytes, sometimes more). Sending still works ok, but receiving hangs.
It looks like BULK IN endpoint fifo in microcontroller is not being fried, and I think that it is the problem on the PC side, probably with usbser.sys driver. Microcontroller hardware still works, and program is being executed but
TXPKTRDY flag isnt being cleared by the hardware (so probably the data hasn’t been acknowledged by PC).
These problems exist while working with my application written with Borland Builder 6 on PC side.
Another problem for example is that widely used “Bray’s Terminal” doesnt work with virtual COM port based on this microcontroller software. It hangs after trying to send some bytes and I have to kill it.
Why dont these problems exist when using for example FTDI chips with their dedicated PC side driver?
I know that this is not exactly the right forum for asking about USB implementation but maybe this is caused by exactly this USB implementation from FreeRTOS.
Have anyone encountered the similiar problems while sending and receiving data? The same software, with some changes, worked great when used in true USB mode (with LibUSB on PC side). But now I have to use it in virtual COM port mode. Maybe usbser.sys driver from WinXP is the problem? How can I solve this?