一般使用打印,断点,逐步增删代码,二分法增删代码逻辑等技术手段进行。 2.定位数据交互在哪里出现问题,比如上面定位到发了请求设备没有返回数据。一般使用逻辑分析仪,USB分析仪,协议分析软件等技术手段,配合上述软件的定位。 3.确认位置后通过状态寄存器等确认具体的问题,比如上面通过描述符DMA的状态去判断。一般需要熟悉IP...
ULPI是LPI接口规范应用于UTMI+协议的一个具体实现, 相对于UTMI,使用ULPI减少了引脚数量,适合于外接USB收发器(PHY)的场景,支持OTG,主机,设备的应用。 一般外接USB收发器比如原型验证阶段时采用ULPI接口,因为ASIC或者SOC的引脚数是比较受限的;而如果USB收发器集成封装在ASIC,SOC内,则使用UTMI接口,因为在芯片内部,不占...
后面再来说,结论就是 dwc2 这个ip太辣鸡,硬件做的很随意,功能没有做到硬件上去,而这个 sof 主要就是给中断传输和同步传输用的。 HCFG 中的 bit 0-1 这也是坑,我们直接看结论,人家手册里说了,每次设置时,需要复位,st 代码中楞是一个字没看见。小坑 HCINTMSK 中的 USB_OTG_HCINTMSK_NAKM 这里面中断...
Dec1015:11:30raspberrypi kernel: [8512.359686] dwc2 fe980000.usb: hcint0x00000002, intsts0x04400001Dec1015:11:30raspberrypi kernel: [8512.359774] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel2- ChHltdset, but reasonisunknown Dec1015:11:30raspberrypi kernel: [8512.359778] dwc2 fe...
IS_ENABLED(CONFIG_USB_DWC2_DUAL_ROLE) /** * testmode_write - debugfs: change usb test mode * @seq: The seq file to write to. * @v: Unused parameter. * * This debugfs entry modify the current usb test mode. * testmode_write() - change usb test mode state. * @file: The file...
20 2 AudioFormat 格式:PCM = 1(即线性量化值),其他值为压缩格式. 22 2 NumChannels 通道数:Mono = 1, Stereo = 2, etc. 24 4 SampleRate 采样率:8000, 44100, etc. 28 4 ByteRate 字节速率: SampleRate * NumChannels * BitsPerSample/8 ...
static inline void dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) {} static inline void dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) {} #endif #if IS_ENABLED(CONFIG_USB_DWC2_HOST) || IS_ENABLED(CONFIG_USB_DWC2_DUAL_ROLE)23...
[I/USB] dwc2 has1channels and dfifo depth(32-bit words)is0[E/USB] This dwc2 version does not support dma mode, so stop working 通过反复确认,各种定位尝试,最终发现是usb模式配置和加入的底层初始化函数不匹配的错误导致: 本来我的目标是将usb口配置为usb -host模式,但是参考的是usb-device模式的...
I get the message when writing to OTG/USB (de0-nano-soc) dwc2 ffb40000.usb Not connected dwc2 ffb40000.usb Overcurrent change detected -- then
Description: USB 2.0 Hi-Speed OTG Controller Subsystem w/AHB Interface Supporting HSIC (config. as Device only or Full Speed only) Name: dwc_usb_2_0_hs_otg_subsystem-ahb Version: 5.00b ECCN: 5E991/NLR STARs: Open and/or Closed STARs myDesignWare: Subscribe for Notifications Product Type:...