VBUS disable on LPC55s36

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

VBUS disable on LPC55s36

ソリューションへジャンプ
1,056件の閲覧回数
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 解決策
979件の閲覧回数
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,030件の閲覧回数
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,023件の閲覧回数
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 件の賞賛
返信
980件の閲覧回数
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 件の賞賛
返信
966件の閲覧回数
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 件の賞賛
返信
958件の閲覧回数
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,042件の閲覧回数
madhubanti
Contributor III

Also i am using USBFS pins.

 

 

madhubanti_0-1744363016664.png

 

0 件の賞賛
返信