Tip / ログイン to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

TD 9.1, USB 3.1 デバイス記述子テストに合格する方法について - KBA221825 - Community Translated (JA)

TD 9.1, USB 3.1 デバイス記述子テストに合格する方法について - KBA221825 - Community Translated (JA)

SivaK_96
Employee
Employee
50 questions asked 10 questions asked 5 questions asked

Community Translated by  YoOb_1790021

Version: **

Translation - English: How to Pass the TD 9.1, USB 3.1 Device Descriptor Test – KBA221825

 

質問:

FX3/CX3 ボードで USB3 CV テストを実行しています。デバイス記述子テスト TD 9.1 が、デフォルトの bcdUSB = 0x0300 の値で失敗します。このテストに合格するには、どの様にすれば良いでしょうか?

 

回答:

デフォルトでは、FX3 SDK(SDKバージョン1.3.3まで)で提供されるサンプル プロジェクトの SuperSpeed デバイス記述子の bcdUSB の値は 0x300 に設定されています。しかしながら、USB 3 CV ツールでは、USB 3.1 SuperSpeed デバイスの bcdUSB の値は 0x0310 である必要があります。このテストは、bcdUSB の値を 0x0310 に変更することでパスします。

 

テストにパスするためのデバイス記述子の例を以下に示します:

 

/* Standard Device Descriptor for USB 3.1 */

const uint8_t CyFxUSB30DeviceDscr[] __attribute__ ((aligned (32))) =

{

    0x12,                           /* Descriptor Size */

       CY_U3P_USB_DEVICE_DESCR,        /* Device Descriptor Type */

    0x10,0x03,                      /* USB 3.1 */

    0x00,                           /* Device Class */

    0x00,                           /* Device Sub-class */

    0x00,                           /* Device protocol */

    0x09,                           /* Maxpacket size for EP0 : 2^9 */

    0xB4,0x04,                      /* Vendor ID  = 0x04B4 */

    0x34,0x12,                      /* Product ID = 0x1234 */

    0x00,0x00,                      /* Device release number */

    0x01,                           /* Manufacture string index */

    0x02,                           /* Product string index */

    0x03,                           /* Serial number string index */

    0x01                            /* Number of configurations */

};

0 件の賞賛
381 件の閲覧回数