I have been facing issues with interfacing a USB printer to K22 controller based custom board. The printer supports ESC/P commands and I am using the example code provided in the SDK: "SDK_2.9.0_FRDMK22F\boards\frdmk22f\usb_examples\usb_host_printer_plain_text\bm".
When i run the example code, the bus enumeration is being done and i am able to see prints of PID and VID of the attached device, and also i am able to get device attached and detached events. The issue is after enumeration when the controller(as in code) tries to get the device id, a STALL interrupt is being asserted(as observed in the USB0-ISTAT register) as shown in the image below.

Changes to print commands to support ESC/P commands needs to be done, as i stuck with this error not able to move forward, since i'm new to USB concepts any inputs will be helpful.