AnsweredAssumed Answered

USB Memory Allocation Error, USB Host, _usb_host_recv_data

Question asked by Colin Dawson on Jun 23, 2019
Latest reply on Jul 11, 2019 by Colin Dawson

Hi!  I keep getting what I believe to be memory leak when using USB Host in MQX.  I am using Codewarrior 10.6 with MQX 4.1.1.  With the USB Host Debug prints enabled I get:





_usb_host_new_tr_element malloc failed

_usb_host_new_tr_element FAILED

_usb_host_set_up_tr NULL transaction


_usb_host_recv_data transfer queue failed

Error with _usb_host_recv_data: 81

USB Memory Allocation Error 

I've tried various things to correct this problem, but I would really like some suggestions on what I may be doing wrong.  When I only receive from the device, this error doesn't happen.  However after a certain number of sends to the USB device, I eventually get this receive error.  How do I release or allocate more memory for a _usb_host_recv_data command?


Thanks in Advance,