More than 2 USB CDC endpoints with SAMD21 ??

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any way to get more than 2 USB CDC endpoints with the SAMD21 and ASF3 ??

Tried setting "#define UDI_CDC_PORT_NB 4" in conf_usb.h but I get this error:

 

/xdk-asf-3.47.0//common/services/usb/class/cdc/device/udi_cdc_conf.h:99:6: error: #error USBB, UDP, UDPHS and UOTGHS interfaces have not enought endpoints.
 #    error USBB, UDP, UDPHS and UOTGHS interfaces have not enought endpoints.

 

Works with 2 CDC endpoints ...

ASF library code seems to only support 2 endpoints for non-XMEGA targets.

What about creating a composite device with two sub-devices each with two ports ?

 

Thanks

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Two sounds right.  Each cdc uses three endpoints, and the samD21 has 8 available.