Unknown USB Device (Device Descriptor Request Failed)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unknown USB Device (Device Descriptor Request Failed)

7,357 次查看
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?

标签 (1)
0 项奖励
回复
7 回复数

6,608 次查看
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 项奖励
回复

6,609 次查看
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 项奖励
回复

6,608 次查看
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 项奖励
回复

6,608 次查看
stephanie_m
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 项奖励
回复

6,608 次查看
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 项奖励
回复

6,608 次查看
stephanie_m
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 项奖励
回复

6,608 次查看
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 项奖励
回复