Skip to content

[SOLVED] Samd51 "Usb Device Not Recognised" ... getting multiple 'Bus Reset'? #921

Discussion options

You must be logged in to vote

I finally tracked it down and was an issue with tud_vendor_control_request_cb() that has changed, managed to ommit the fact I was using a BOS descriptor in the OP but changing his fixes the issue I was facing:

if TUSB_VERSION_MINOR < 8
bool tud_vendor_control_request_cb( uint8_t rhport, tusb_control_request_t const* request )
{
#else
extern "C" bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const* request)
{
    // nothing to with DATA & ACK stage
    if (stage != CONTROL_STAGE_SETUP) return true;
    if (request->bmRequestType_bit.type!= TUSB_REQ_TYPE_VENDOR) return true; // stall unknown request
#endif

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@hathach
Comment options

@dhalbert
Comment options

@hathach
Comment options

@CraigHutchinson
Comment options

@hathach
Comment options

Answer selected by CraigHutchinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants