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  [ 3 posts ] 
Author Message
 Post subject: resetting the USB peripheral without resetting the chip?
PostPosted: Wed Mar 31, 2010 2:40 pm 
Offline

Joined: Tue Nov 24, 2009 12:19 pm
Posts: 3
My MCU is a AT91SAM7se256.

In my application, the MCU is backed by battery, so it is always on regardless of USB connection status. The problem however is that I cannot get the USB peripheral to clear the addressed bit in the UDP_GLB_STAT register, so when I attach the USB cable to a Linux box, the host fails a number of times before a successful attachment can be made.

Any suggestions on how to make a "hot" USB attach look the same to the host as a "cold" USB attach with a system that has been through reset?


Top
 Profile  
 
 Post subject: Re: resetting the USB peripheral without resetting the chip?
PostPosted: Thu Apr 01, 2010 8:02 am 
Offline

Joined: Fri Oct 19, 2007 10:18 am
Posts: 40
Hi,
we use an Arm9, but maybe our approach work on your device also:
The USB driver (taken from the ATMEL software package for our controller) has the functions USBD_Disconnect and USBD_Connect and we do a "softreset" of USB by just calling these 2 functions. It then behaves like unplugging and replugging the usb cable.


Top
 Profile  
 
 Post subject: Re: resetting the USB peripheral without resetting the chip?
PostPosted: Tue Apr 06, 2010 3:11 pm 
Offline

Joined: Tue Nov 24, 2009 12:19 pm
Posts: 3
Thanks for replying,

we use the same trick with disconnecting/reconnecting (aside from some added deep power save-stuff) to simulate a fresh connection.

stefan192 wrote:
Hi,
we use an Arm9, but maybe our approach work on your device also:
The USB driver (taken from the ATMEL software package for our controller) has the functions USBD_Disconnect and USBD_Connect and we do a "softreset" of USB by just calling these 2 functions. It then behaves like unplugging and replugging the usb cable.


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

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: