Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [SOLVED] AT91SAM7S OLIMEX P64 USB Bank1 Problem FreeRTOS
PostPosted: Sat Jun 12, 2010 8:11 am 
Offline

Joined: Sat Jun 12, 2010 8:03 am
Posts: 1
Dear all,

I have adapted FreeRTOS for the P64 board,
added EP2 as INT OUT.

If I send with libusb-win32 8 byte, the first package arrives with no probs.
Resending the same package, there is an interrupt, but no bytes are received, the FIFO is empty at bank1.

USBSpy reports successful transfer of 8 bytes and even libusb-win32 returns usb_interrupt_write() with no error!!!

Anyone already seen such problem?

thanks,
dg

edit: in the meantime i tried with EP3 (no ping pong), the result was the same, the second package had no data payload. :(

edit2: Problem found

I didnt remove these lines from the ISR for the OUT part:

/* The direction must be changed first. */
usbCSR_SET_BIT( &ulTemp, ( AT91C_UDP_DIR ) );
AT91C_BASE_UDP->UDP_CSR[ usbEND_POINT_1 ] = ulTemp;

I thought DIR is only for control transfer.
After I removed them everything works fine. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: