Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
I am using code warrior to change the spectrum digital usb code to work with labview. I
can get the drivers to work if I ignore the string descriptors (set the index to 0), however I
would like to use the string descriptors.
When I initially hook the device into the computer the host asks for the string descriptor that
can be ff bytes. Then when the lab view driver starts to run it requests a descriptor that is
only 2 bytes. There is a comment in the code to add the length to the beginning of the strings
before runtime but I am not sure how this is accomplished. Could someone give me an example of
how they would code this with the following...
// C55xx chars are 16-bit
// calculate and add the length to the beginning of the strings
// at runtime before sending the string descriptors
char *string_descriptor[] =
{
(char *)&string_descriptor_langid[0], // LANGID
" Spectrum Digital, Inc.", // iManufacturer
" USB Test", // iProductName
" USB Test", // iConfiguration
" Vendor Specific", // iInterface - Vendor Specific
NULL // end of string descriptor
};
This extra code below might be necessary. The code above occurs right after the code below in
the script.
Uint16 string_descriptor_langid[] =
{0x0000, // field for xfer_byte_cnt - used by the data
// transfer API, not an integral part of descriptor
(USB_DESCRIPTOR_STRING<<8) | 4, // bLength, bDescriptorType
0x0409, // LANGID (English)
0x0000
};
Thanks,
Chad Warren
Look at the USB_reqGetDescriptor code. This shows how they do it.
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
c...@gmail.com
Sent: Monday, June 04, 2007 8:16 AM
To: c...@yahoogroups.com
Subject: [c55x] Format for 5509a USB String Descriptor
I am using code warrior to change the spectrum digital usb code to work
with labview. I can get the drivers to work if I ignore the string
descriptors (set the index to 0), however I would like to use the string
descriptors.
When I initially hook the device into the computer the host asks for the
string descriptor that can be ff bytes. Then when the lab view driver
starts to run it requests a descriptor that is only 2 bytes. There is a
comment in the code to add the length to the beginning of the strings
before runtime but I am not sure how this is accomplished. Could someone
give me an example of how they would code this with the following...
// C55xx chars are 16-bit
// calculate and add the length to the beginning of the strings
// at runtime before sending the string descriptors
char *string_descriptor[] =
{
(char *)&string_descriptor_langid[0], // LANGID
" Spectrum Digital, Inc.", // iManufacturer
" USB Test", // iProductName
" USB Test", // iConfiguration
" Vendor Specific", // iInterface - Vendor Specific
NULL // end of string descriptor
};
This extra code below might be necessary. The code above occurs right
after the code below in the script.
Uint16 string_descriptor_langid[] =
{0x0000, // field for xfer_byte_cnt - used by the data
// transfer API, not an integral part of descriptor
(USB_DESCRIPTOR_STRING<<8) | 4, // bLength, bDescriptorType
0x0409, // LANGID (English)
0x0000
};
Thanks,
Chad Warren
Is anybody aware of a flash programmer(SW) sold by a third party that works with CCS 3.1
using USB JTAG emulators?
I've been using XDS510 PP emu with CCS2.21 to program my flash, but willing to totally get rid
of CCS2.21. The flash programmer that I have does not work with CCS 3.1.
Any help would be appreciated.
TayyaR.
Lance Ralph <l...@microaud.com> wrote:
Look at the USB_reqGetDescriptor code. This shows how they do it.
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of c...@gmail.com
Sent: Monday, June 04, 2007 8:16 AM
To: c...@yahoogroups.com
Subject: [c55x] Format for 5509a USB String Descriptor
I am using code warrior to change the spectrum digital usb code to work with labview. I
can get the drivers to work if I ignore the string descriptors (set the index to 0), however I
would like to use the string descriptors.
When I initially hook the device into the computer the host asks for the string descriptor
that can be ff bytes. Then when the lab view driver starts to run it requests a descriptor that
is only 2 bytes. There is a comment in the code to add the length to the beginning of the
strings before runtime but I am not sure how this is accomplished. Could someone give me an
example of how they would code this with the following...
// C55xx chars are 16-bit
// calculate and add the length to the beginning of the strings
// at runtime before sending the string descriptors
char *string_descriptor[] =
{
(char *)&string_descriptor_langid[0], // LANGID
" Spectrum Digital, Inc.", // iManufacturer
" USB Test", // iProductName
" USB Test", // iConfiguration
" Vendor Specific", // iInterface - Vendor Specific
NULL // end of string descriptor
};
This extra code below might be necessary. The code above occurs right after the code below in
the script.
Uint16 string_descriptor_langid[] =
{0x0000, // field for xfer_byte_cnt - used by the data
// transfer API, not an integral part of descriptor
(USB_DESCRIPTOR_STRING<<8) | 4, // bLength, bDescriptorType
0x0409, // LANGID (English)
0x0000
};
Thanks,
Chad Warren