Hi Jorge,
Thanks for Replay.
Actually that issue is because of linker file. The issue solved after changing linker file.
Here I'm discussing another issue what I am facing.
I am working on iMXRT1064 USB Host cdc communication. I am using USB host cdc RTOS SDK example code.
I'm able to establish a communication between iMXRT1064 (Host) and Quectel EC25 Modem(Device) after changing communication class codes as per Quectel EC25 modem. I'm pasting below code for reference.
The Quectel EC25 is configured with 4 USB ports, but I'm accessing only one port (AT Port).
/*! @brief CDC class-specific code, Communications Interface Class Code*/
#define USB_HOST_CDC_COMMUNICATIONS_CLASS_CODE 0xFF //0x02U
/*! @brief CDC class-specific code,Communications Class Subclass Codes*/
#define USB_HOST_CDC_SUBCLASS_ACM_CODE 0x00 //0x02U
/*No class specific protocol required. See the CDC specification page22*/
#define USB_HOST_CDC_PROTOCOL_CODE 0x00U
/*! @brief CDC class-specific code,Data Class Interface Codes*/
#define USB_HOST_CDC_DATA_CLASS_CODE 0xFF //0x0AU//
/* This field is unused for Data Class interfaces and should have a value of 00h.*/
#define USB_HOST_CDC_DATA_SUBCLASS_CODE 0x00U
/*No class-specific protocol required. See the CDC specification page22*/
#define USB_HOST_CDC_DATA_PROTOCOL_CODE 0x00U
I'm requesting data through AT commands. For every AT command, we will get data and OK response or only OK response.
The actual issues is for some commands, I'm receiving only data. I'm not receiving OK. When I fire next command, then I'm receiving previous OK response & current response.
How to read missing OK response before sending another request?
I think example code is in pooling method. Is there any USB Host CDC example code is interrupt method?
Thanks & Regards,
Yashwanth.