Unknown USB Device (Device Descriptor Request Failed)

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

Unknown USB Device (Device Descriptor Request Failed)

3,742 Views
yoursunny
Contributor III

I want to collect debug logs written by printf statements over USB-UART. However, after I upload any firmware to the USB mass storage device, the device reboots and my Windows 10 computer recognizes it as Unknown USB Device (Device Descriptor Request Failed).

I tried to plug the kit to a Linux computer (RPi 3B), but dmesg shows device descriptor read/64, error -32 and unable to enumerate USB device.

printf is a vital way to debug code without using a SWD debugger. Is there any driver (Windows or Linux-ARM) that I can use to enable USB-UART?

Labels (1)
0 Kudos
7 Replies

2,994 Views
theophileleroy
NXP Employee
NXP Employee

after I upload any firmware to the USB mass storage device

Wich file are you trying to upload to Rapid-IOT? Just to be sure, it must be a .bin file generated after compiling your project. Located under /Debug folder.

0 Kudos

2,995 Views
yoursunny
Contributor III

Yes it is /Debug/*.bin. I know how to upload and I can upload an example and run it successfully. I just want to see printf without using Bluetooth.

0 Kudos

2,994 Views
theophileleroy
NXP Employee
NXP Employee

To be confirmed, for now, only SWD debug via docking station is available on Rapid-IoT. I am not aware of driver for uart over usb.

0 Kudos

2,994 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Just to confirm, you are working with the Rapid IOT studio and you are programming the kit with it and you are trying to debug it through USB? 

Have you tried a debug like the one they use here? 

https://community.nxp.com/thread/489735  

Regards, 

Estephania 

0 Kudos

2,994 Views
yoursunny
Contributor III

No, I'm programming in MCUXpresso. I want to write debug logs without relying on Bluetooth, because my project needs to use the Bluetooth to connect to an ESP32, not a phone or tablet.

0 Kudos

2,994 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

And after using the printf, you do not see anything in neither the debug console nor the console of  MCUXpresso, is that correct? Just to verify the state of the semi-hosting 

Also, by any chance, have you checked that example as well? 

pastedImage_1.png

Regards

0 Kudos

2,994 Views
yoursunny
Contributor III

There is no console. The computer doesn't even recognize the USB device.

Debug Print Demo is not a MCUXpresso project, so it cannot help me. I need a solution for MCUXpresso.

0 Kudos