Continuously receiving get_descriptor in usb

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Continuously receiving get_descriptor in usb

760 次查看
salman83
Contributor II

Hi,

I am trying to program MCF52259 demo kit micro controller. At the moment I am stuck with USB Endpoint 0. When I connect my usb, I get interrupt and then asked for Get_Descriptor. I send the device descriptor then it resets but after resetting, it again asks for device descriptor instead of issuing Set_Address command.

 

What could be the cause of the problem.

 

Here is the sequence of events that I encountered.

 

RESET

SETUP - Get_Descritpor

IN

OUT

RESET

SETUP - Get_Descritpor

IN

OUT

RESET

SETUP - Get_Descritpor

IN

OUT

标签 (1)
0 项奖励
回复
3 回复数

537 次查看
eckhard
Contributor V

Hello,

 

maybe you have a problem with overlapping Interrupt Priorities.

Have a look at this http://mcuoneclipse.wordpress.com/2012/04/22/trapspitfalls-overlapping-interrupt-priorities/

 

Eckhard

0 项奖励
回复

537 次查看
salman83
Contributor II

Thanks for the reply.

 

I checked all the interrupt handlers. I am not receiving any interrupt apart from USB.

 

But still I am getting the same problem.

 

I looked into the sample programs on the internet but can't find whats the problem.

 

Any help will be highly appreciated.

 

Regards.

 

0 项奖励
回复

537 次查看
swapnilmisal
Contributor II

Hello,

try using a software usb sniffer for detail packet transfer.

find whose creating problem 1)is it PC who cannot detect ACK signals from MCF52259

                                          2) Or device which cannot send descriptor in required format.

     Download USB Monitor

Swapnil.