How to use the download port as a regular USB device port on the development boar

I want to use the download port as a regular USB device for data communication with a PC. How can I set the download port to a regular USB port?

Are you talking about NV devkit or your own custom board?

Third party customized boards,His download port and nvdevkit should be the same。

請問這個所謂的"Third party customized boards" 是你自己做的還是其他vendor做的?

英伟达的代理商做的,不是我们自己做的。还有一个问题就是 我想把orin NX 作为设备端与PC通信, orin NX 的几个USB 只能设置为OTG模式,不能只设置为peripheral 模式嘛?

那請你找vendor要他們的BSP. 我們這裡也沒有他們的一些硬體資料, 沒辦法回答你的問題.

那如果是英伟达官方的开发板,把下载口作为普通设备端应该怎么做呢?
还有我问的第二个问题是,如果我们自己设计电路板的话,USB可以只设计为peripheral模式,不设计成OTG模式,可以嘛?

Orin Nano/NX devkit的 flash port本來就是otg mode. 你只要接USB device 就能直接當host mode使用.

还有我问的第二个问题是,如果我们自己设计电路板的话,USB可以只设计为peripheral模式,不设计成OTG模式,可以嘛?

可以. Xavier NX的底板就是這樣設計而且還是可以在Orin NX/Nano上使用

那 默认的 flash usb2-0 只有在 recovery 模式下 才能被上位机识别啊,不在recovery模式是被识别的。我想让这个USB2-0不在recovery模式也能被上位机识别,需要怎么修改呢

我前面已經講過了, 這跟硬體設計有關… 我這邊沒有辦法回答你說 " 喔你就改xxxx就可以了"…

recovery mode是用硬體去觸發的, 但開進linux之後是透過軟體而且得看你們硬體設計才有辦法寫正確的device tree設定

OK ,我已经在论坛上找到修改的方法了。

但是我想问一问题,我想把orin NX作为设备端和PC进行通信,我的硬件设计为USB3.0从机。那么orin NX的驱动usb 3.0的通信驱动,需要自己编写嘛?或者您有相关资料推荐嘛?

如果是使用orin nano devkit預設的device tree. 那device mode usb3.0應該本來就是開啟的

我們這邊有usb porting guide

https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html?highlight=universal#porting-the-universal-serial-bus

那比如USB 作为从机 的设备描述符,端口描述符这些怎么设置

可以確認這個systemd service.

→ /opt/nvidia/l4t-usb-device-mode/nv-l4t-usb-device-mode-runtime.service

這個路徑其餘的shell script就會做這些設定.

thank you

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.