Minor descriptor issue Topic is solved

Discussions about USB Audio on XMOS devices
MaximLiadov
XCore Addict
Posts: 152
Joined: Mon Apr 16, 2018 9:14 am

Minor descriptor issue

Post by MaximLiadov »

Hello everyone,

Thesycon tdd doesn't like the descriptor.

0x02 0x0409 Request failed with 0x0000001F

No big deal, but would be nice to fix.
The string "" or null is apparently not allowed.

This affects sw_usb_audio_sw_v8_1_0 and all previous sources.
You do not have the required permissions to view the files attached to this post.
View Solution
danielp
Member++
Posts: 16
Joined: Tue Jul 16, 2024 9:52 am
Location: Bristol, UK

Post by danielp »

This has been fixed in lib_xua. Thesycon tdd no longer reports this error with our latest codebase. This will soon be released as sw_usb_audio v9.0.0.
XMOS, Senior Software Engineer
MaximLiadov
XCore Addict
Posts: 152
Joined: Mon Apr 16, 2018 9:14 am

Post by MaximLiadov »

Great to hear! Big respect.
User avatar
Ross
Verified
XCore Legend
Posts: 1152
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

To add some detail to this:

This is the serial number string. The default behaviour was to report "none" i.e. iSerialNumber = 0.

However, due to restrictions relating to Windows this is not supported by the latest DFU behaviour, the default behaviour is now to respond with an empty string.

(It's currently expected that the user adds their own implementation as/if required)
Technical Director @ XMOS. Opinions expressed are my own
MaximLiadov
XCore Addict
Posts: 152
Joined: Mon Apr 16, 2018 9:14 am

Post by MaximLiadov »

Thanks, Ross!

Modifications that worked for me (tested with XTC14 old code):

Code: Select all

// descriptor.h

.serialStr                   = "12345",

// null_descs.h

#ifndef SERIAL_STR_INDEX
#define SERIAL_STR_INDEX 0x0003
#warning SERIAL_STR_INDEX not defined, using 0x0003
#endif

SERIAL_STR_INDEX,               /* 16 iSerialNumber : Index of serial number decriptor */