LPC43S57 USB1 Host Configuration issue

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

LPC43S57 USB1 Host Configuration issue

235 次查看
Sabarish
Contributor II

Hi

    We are trying to use USB1 peripheral of LPC43S57 controller as USB host to connect a device in customer board. We are using KEIL MDK to configure the USB stack and USB driver.
 
When we call USBH_Initialize(1) function it returns an error indicating "Controller does not exist". We tried to search on the internet regarding the USB1 Hardware connections, and we observed that in many places it is mentioned that USB1 peripheral will not work without external PHY. However, the datasheet indicates that it supports on chip full speed PHY. 
 
Can you clarify for us if the USB1 does have on chip full speed PHY?
 
The USB1_VBUS pin is not used since it is a Host and the device we are connecting is a self powered device.
 
Also please find below the snapshot of the USB1 connection we have done as Host
 
Regards
Sabarish Kumar
0 项奖励
回复
4 回复数

36 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @HeatherUlrich 

Did you change USB1 from Host to Device mode and develop the device_cdc project?
If yes, you can first run the CDC demo under LPCOpen on your board to test it.
This will help confirm whether there are any issues with your hardware.


Thank you.

 

BR

Alice

 

0 项奖励
回复

82 次查看
HeatherUlrich
Contributor I

@Slope Game Anyway, speaking of things crashing spectacularly, I once spent an entire weekend wrestling with a dodgy microcontroller that refused to enumerate correctly. Turns out a single misconfigured clock speed was the culprit, cascading into a chain of unexpected errors that was a real  of debugging. It was incredibly frustrating.

0 项奖励
回复

182 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Sabarish 

In USB Full-speed mode, use CLK_USB1 to generate a clock for USB1 interface, no need external PHY. While In High-speed mode, the external PHY generates the clock for the USB1 interface, and the USB1_ULPI_CLK must be enabled on pins PC_0 or P8_8 through their respective pin configuration registers in the system configuration block. 

Please check that the ​​USB1_DP​​ and ​​USB1_DM​​ signals are correctly connected to the device. Additionally, ensure that the software configuration is properly set up. For reference, you can refer to the ​​USB-host demo​​ provided in the ​​LPCopen​​ library.

Alice_Yang_0-1757931704656.png

 

BR

Alice

 

0 项奖励
回复

170 次查看
Sabarish
Contributor II

Hi @Alice_Yang 

        I have already configured CLK_USB1 to generate the clock for USB1 interface for 60MHZ. I have Configured USB1 as device(Full Speed mode) and connected to the PC. In LPC43S57 USB controller I can able to see the USB is attached as A device in USB Status register but in PC I can't able to see any COM port or any other USB device is connected. I Have Configured USB0 as device and connected to PC it is detected as COM port and not working with USB1 configuration.

I have attached  USB1 device configuration image for your reference

 

Regards

Sabarish Kumar 

0 项奖励
回复