Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS USB problems

Posted by Mateusz Plocinski on June 15, 2007
Hi,
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?

Please help
Mateusz Plocinski

RE: FreeRTOS USB problems

Posted by Dave on June 15, 2007
I have read that the implementation in the FreeRTOS download is not 100% standards compliant as the equipment required to make it such is too costly. Maybe this is the problem? Apparently it works ok on Windows but not Linux.

RE: FreeRTOS USB problems

Posted by Mateusz Plocinski on June 15, 2007
Hmmm, I think that I dont understand. Do you mean that implementation is not compliant because it would takie too much time to write it that way or what? What equipment are you talking about?.
I think that I have to try other implementations of USB for sam7s but I'm still trying to avoid that. I would have to rewrite my whole application to work without OS. ;/

Nobody tried to use USB + FreeRTOS with sam7s microcontroller? Or maybe only I have such strange problems?


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists