• AVR Freaks

Hot!cdc_com_port_single demo on PIC32 usb starter kit 3

Author
polinag96
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2019/10/02 11:22:31
  • Location: 0
  • Status: online
2019/10/19 20:06:00 (permalink)
0

cdc_com_port_single demo on PIC32 usb starter kit 3

Hello
I am using the pic32 usb starter kit 3 and a cdc_com_port_single demo app from Harmony. I was able to build and program my device but before hand, I had to set up the device driver because the pic doesn't show up as a usb serial port. I used the .inf file from the cdc_com_port_single directory but I am getting an error
"This device cannot start. (Code 10)

The specified request is not a valid operation for the target device."
Can anyone please help me out?
#1
Soren.Bang
Starting Member
  • Total Posts : 45
  • Reward points : 0
  • Joined: 2012/10/10 13:01:51
  • Location: Denmark
  • Status: offline
Re: cdc_com_port_single demo on PIC32 usb starter kit 3 2019/10/23 07:04:02 (permalink)
0
Hi Polinag
 
Does your USB demo board show up in your windows device tree - If windows cannot load the driver for a device is should be listed with a yellow '!' usually at the top of the device tree.
 
I cannot find my USB starter kit, but is there by any chance a jumper that allows you to select which USB port is enabled on the starter kit ?
On the ethernet starter kit there is one USB A (Host) connector and one miniB (OTG) connector that share the USB pins on the PIC32 and the USB starter kit is probably much the same.
 
Regards
 
Søren
 
#2
newfound
Super Member
  • Total Posts : 1849
  • Reward points : 0
  • Joined: 2003/11/07 12:35:49
  • Status: offline
Re: cdc_com_port_single demo on PIC32 usb starter kit 3 2019/10/23 11:30:04 (permalink)
4 (1)
Code-10 errors usually are CLASS request errors. It could be that you are not implementing all the CDC class requests as required by the bmCapabilities settings in the CDC Abstract Control Management Functional Descriptor and Call Management Functional Descriptor.
 
See USB CDC spec: usbcdc11.pdf
Sections: 3.6.2.1  5.2.3.2 5.2.3.3
 
A USB packet sniffer can be used to sniff the traffic to find which class request is failing.

  
 


#3
Jump to:
© 2019 APG vNext Commercial Version 4.5