Bug in CMX Stack???

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

Bug in CMX Stack???

1,142 次查看
mar_vir83
Contributor I

Hello!

 

i've many problems with mcf51jm128 and cmx usb stack, in host mode. The problem is in the handshaking phase of this kind of requests:

 

direction: OUT (host to device)

type: control transfers

length: greater then zero

 

the device doesn't send the zero length packet...i tried different types of device, also using the example project for HID keyboard class...the only instruction that use this kind of transaction is:

 

hid_kbd_set_leds(/*data for leds*/);

 

if call this, nothing happens...

 

can anyone help me? i can't find the errata of the cmx application note...

thanks a lot!! excuse disturbing

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

654 次查看
TomLEE
Contributor III

Hello,

 

I have EXACTLY the same problem !

 

I want to use the function: hid_kbd_set_leds() and nothing happens on keyboard and furthermore, the program is blocked in infinite loop on "usb_host_start_transaction()" function :

/* Wait for transaction end or an error occurs */
    while((MCF_USB_INT_STAT & (MCF_USB_INT_STAT_TOK_DNE | MCF_USB_INT_STAT_STALL | MCF_USB_INT_STAT_ERROR)) ==0)

 

Does someone sucessed to light on usb keyboard leds with latest CMX stack on DEMOJM board with MCF51JM128 ?

 

thanks for help,

Thomas.

0 项奖励
回复