VBUS disable on LPC55s36

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

VBUS disable on LPC55s36

跳至解决方案
1,062 次查看
madhubanti
Contributor III

Hi

I am using lpc55s36. In my circuit diagram the vbus pin is not connected and kept open. The problem is i am not being able to detect my ebedded device on the port list on my laptop when i connect through USB.

 

Is there anyway I can remove the VBUS detection related code, so that I can access the port on my laptop and communicate through PUTTY to my embedded device.

 

I went through the code of the SDK example of  lpcxpresso55s36usb_dev_cdc_vcom_lite_bm.

0 项奖励
回复
1 解答
985 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @madhubanti 

For the 0A revision of the device, the VBUS voltage is not checked. Thus, the USB_VBUS can remain disconnected. However, this detection feature was implemented in the 1B devices. In the 1B devices, PIO1_31 should be connected to VBUS. You can refer to the schematic of the LPCXpresso5536 - evb. On this schematic, for the 1B version devices, connect pins 1 - 2 of JP46.

1.jpg

2.jpg

BR

Alice

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,036 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @madhubanti 

Sorry, there is no code to remove the VBUS detection. The device needs to check the VBUS voltage.

 

BR

Alice

 

 

 

0 项奖励
回复
1,029 次查看
madhubanti
Contributor III

My circuit has the following connection 

madhubanti_0-1744370460671.png

As you can see the USB0_3V3 pin is connected to a voltage. but the PIO1_31 pin which the USB_VBUS pin has been kept disconnected. Will this setup not work since the VDD pin is connected always to a source. 

 

Also we had the same circuit implementation for another device, but it uses zephyr os and it works without the PIO1_31 pin being connected.

Can you give us some insight into how this is not working for bare metal implementation of the SDK code but working when implemented with zephyr.

0 项奖励
回复
986 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @madhubanti 

For the 0A revision of the device, the VBUS voltage is not checked. Thus, the USB_VBUS can remain disconnected. However, this detection feature was implemented in the 1B devices. In the 1B devices, PIO1_31 should be connected to VBUS. You can refer to the schematic of the LPCXpresso5536 - evb. On this schematic, for the 1B version devices, connect pins 1 - 2 of JP46.

1.jpg

2.jpg

BR

Alice

 

0 项奖励
回复
972 次查看
madhubanti
Contributor III

Thank you for the clarification!  The circuit design on the EVK board is such that you cannot ignore the PIO1_31 pin.

 

But if we want to use the sdk example code of vcom_cdc_lite_bm for the usb driver code in our codebase for our device then, where on the firmware side is this check being done? Which file or variable to look for? 

I couldn't find on the firmware side so far. For the device we are building, it uses LPC55s36 MCU. Hence, if we could get to know where the vbus detection is taking place we can customize that part of code in the firmware for our device.

 

Looking forward to your response!

 

Best

Madhubanti

0 项奖励
回复
964 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @madhubanti 

Thank you for your reply.

There's no code to check as it's not controlled by code. This is a hardware behavior.

 

BR

Alice

0 项奖励
回复
1,048 次查看
madhubanti
Contributor III

Also i am using USBFS pins.

 

 

madhubanti_0-1744363016664.png

 

0 项奖励
回复