LPC4088 USB: how do I switch between interfaces within one configuration

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

LPC4088 USB: how do I switch between interfaces within one configuration

ソリューションへジャンプ
1,883件の閲覧回数
NEIL4
Contributor II

Hello,

I am using LPC4088, I have configured interface  USB in HMI(PORTSEL 0) and MSD (PORTSEL 1) one at a time  individually working fine. In runtime when I Deint (USB-MSD) and Init (USB-HMI) vice versa I am getting continuous interrupt. I have some general questions.

1. Can both interface work simultaneously, how to configure them?

2. In runtime when I Deint (USB-MSD) and Init (USB-HMI) vice versa I am getting continuous interrupt, why?

3. How many max interfaces should be configured?

4. Difference between logical and physical endpoint? 

5. General guidelines for USB-MSD configuration, selection of endpoint type, size etc.

6. General guidelines for USB-HMI configuration, selection of endpoint type, size etc.

7. What is Double buffer w.r.t. endpoint and its use cases?

Earlier I did bare metal embedded programming, How to understand USB stack in depth?

Thank you.

0 件の賞賛
返信
1 解決策
1,842件の閲覧回数
NEIL4
Contributor II

Thank you, EdwinHz.

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,862件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @NEIL4,

 

I’m afraid you are not able to have the same USB module configured with two different ports at the same time. This is most likely why your USB interruptions are getting mistakes when you try both configurations. My best recommendation would be to try the USB examples that we provide on the LPCOpen libraries to get a better understanding of the configuration of the USB modules.

 

BR,

Edwin.

0 件の賞賛
返信
1,843件の閲覧回数
NEIL4
Contributor II

Thank you, EdwinHz.

 

0 件の賞賛
返信