USB Composite device (HID + MSC) - USB stack problem?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB Composite device (HID + MSC) - USB stack problem?

Jump to solution
1,220 Views
PaoloS
Contributor II

I have implemented a HID + MSC composite USB HS device using the USB stack provided by NXP and starting from the examples.
- HID: custom (512byte IN / OUT report on EP1)
- MSC with MicroSD support (on EP2)
I have a fairly serious problem highlighted by USB Analyzer CATC 2500H: almost always the HID transactions are "dirty" or inhibited when an MSC transaction is started at the same time (writing a file on mass storage) and, obviously, the HID part goes into error not completing the transaction.
It is not the first product of this type that we have developed and this problem was not presented to us.

Do you have any suggestions to fix this?

NOTE
- Keil SDK
- No SysOP used
- NXP 2.12.0 libraries (USB composite - HID - MSC - SD)

Thanks

Labels (2)
0 Kudos
Reply
1 Solution
1,200 Views
PaoloS
Contributor II

SOLVED

I assumed that the stack would autonomously handle the resending of the HID packet in the event of a busy pipe.
By handling the resend the problem disappeared.

Thanks anyway for your availability.

View solution in original post

0 Kudos
Reply
2 Replies
1,201 Views
PaoloS
Contributor II

SOLVED

I assumed that the stack would autonomously handle the resending of the HID packet in the event of a busy pipe.
By handling the resend the problem disappeared.

Thanks anyway for your availability.

0 Kudos
Reply
1,215 Views
belmontbob59
Contributor IV

can you post the USB trace that exhibits the problem?

0 Kudos
Reply