Implement MQX4.1 USB for K60d100m

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Implement MQX4.1 USB for K60d100m

920 Views
charliemmao
Contributor II

Hi All

I modified Daisa's code (refer to USB In MQX) for my project (K60 MCU's UUS connected to an external USB device). I opened two pipes with endpoint 1 and bulk pipe type. I can open pipe and send data successfully, but when I read response I received error 0x81. In details, I received following message (recompile USB host library to enable debug print) when I call _usb_host_recv_data()

_usb_host_new_tr_element malloc failed

_usb_host_get_tr_element error null pipe tr_list

_usb_host_set_up_tr NULL transaction

_usb_host_recv_data transfer queue failed

Can you help me to find the problem?

Tags (2)
0 Kudos
3 Replies

702 Views
c_dawg
Contributor III

Any solution to this?  I have a similar problem.

Thanks,

Colin

0 Kudos

702 Views
soledad
NXP Employee
NXP Employee

Hello Charlie,

Could you please send a screenshot of this issue??

Regards

Sol

0 Kudos

702 Views
charliemmao
Contributor II

Hi Sol

Here are screen shots:

USB_Write_Read_20141017.png

above image shows write OK but read failed  malloc failed (refer image below) in mem.c

USB Read Mem Allocation_Failed.png

Thanks

Charlie

0 Kudos