外部固件模式:程序是例子程序USBDISK.C.那些描述符也都是USBDISK.H中的.这是什么原因
先收到电脑的: 80 06 00 01 00 00 40 00 收到后反回了只有16字节的设备描述符下面这个中断就产生了: 00 05 03 00 00 00 00 00 设置完地址后,收到: 80 06 00 01 00 00 12 00 然后反回了18字节的设备描述符,收到: 80 06 00 02 00 00 09 00 然后返回9字节的配置描述符,收到 80 06 00 02 00 00 ff 00 反回9字节的接口描述符,然后又收到了一个: 80 06 00 01 00 00 12 00 然后反回了18字节的设备描述符,收到: 80 06 00 02 00 00 09 00 然后返回7字节的端点描述符,收到 80 06 00 02 00 00 82 02 反回7字节的端点描述符.之后MCU就没有反应了.
Bus Hound 检测数据: Device Phase Data Description Cmd.Phase.Ofs(rep) Delta 7.0 CTL 23 01 14 00 02 00 00 00 CLEAR FEATURE 280.1.0 4us 2005-07-17 08:58:31.482 7.0 URB 50 00 08 00 00 00 00 00 c0 51 71 81 20 00 00 00 CONTROL TRANSFER 280.2.0 22us 2005-07-17 08:58:31.482 d8 51 71 81 0a 00 00 00 00 00 00 00 00 00 00 00 280.2.16 00 00 00 00 00 00 00 00 ff ff ff ff 0d f0 ad de 280.2.32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 280.2.48 00 00 00 00 00 00 00 00 23 01 14 00 02 00 00 00 280.2.64 7.0 CTL 80 06 00 02 00 00 ff 00 GET DESCRIPTOR 281.1.0 85ms 2005-07-17 08:58:31.567 7.0 LEN 09 00 00 00 9 281.2.0 1.9ms 2005-07-17 08:58:31.569 7.0 DI 09 04 00 00 02 08 04 50 00 .......P. 281.3.0 3us 2005-07-17 08:58:31.569 7.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 281.4.0 4us 2005-07-17 08:58:31.569 08 d4 8f 81 0b 00 00 00 09 00 00 00 68 7b 7e ff 281.4.16 b8 38 22 81 00 00 00 00 ff ff ff ff 0d f0 ad de 281.4.32 e0 35 22 81 40 00 00 00 00 00 00 00 00 00 00 00 281.4.48 38 f0 34 e1 00 00 00 00 80 06 00 02 00 00 ff 00 281.4.64 7.0 CTL a3 00 00 00 03 00 04 00 GET STATUS 282.1.0 22us 2005-07-17 08:58:31.569 7.0 LEN 04 00 00 00 4 282.2.0 32us 2005-07-17 08:58:31.569 7.0 DI 00 01 00 00 .... 282.3.0 2us 2005-07-17 08:58:31.569 7.0 URB 50 00 08 00 00 00 00 00 c0 51 71 81 22 00 00 00 CONTROL TRANSFER 282.4.0 3us 2005-07-17 08:58:31.569 d8 51 71 81 0b 00 00 00 04 00 00 00 58 10 a5 81 282.4.16 b8 38 22 81 00 00 00 00 ff ff ff ff 0d f0 ad de 282.4.32 e0 35 22 81 40 00 00 00 00 00 00 00 00 00 00 00 282.4.48 38 f0 34 e1 00 00 00 00 a3 00 00 00 03 00 04 00 282.4.64 17.0 CTL 80 06 00 01 00 00 12 00 GET DESCRIPTOR 283.1.0 17ms 2005-07-17 08:58:31.587 17.0 LEN 12 00 00 00 18 283.2.0 2.2ms 2005-07-17 08:58:31.589 17.0 DI 12 01 10 01 00 00 00 08 48 43 37 55 00 01 00 00 ........HC7U.... 283.3.0 2us 2005-07-17 08:58:31.589 00 01 .. 283.3.16 17.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 283.4.0 3us 2005-07-17 08:58:31.589 08 d4 8f 81 df b8 53 80 12 00 00 00 b8 d7 8b fd 283.4.16 68 b8 2f 81 00 00 00 00 ff ff ff ff 0d f0 ad de 283.4.32 00 00 04 c0 01 00 00 00 64 09 e8 f9 64 09 e8 f9 283.4.48 00 00 00 00 00 00 00 00 80 06 00 01 00 00 12 00 283.4.64 17.0 CTL 80 06 00 02 00 00 09 00 GET DESCRIPTOR 284.1.0 12us 2005-07-17 08:58:31.589 17.0 LEN 07 00 00 00 7 284.2.0 960us 2005-07-17 08:58:31.590 17.0 DI 07 05 82 02 40 00 00 ....@.. 284.3.0 2us 2005-07-17 08:58:31.590 17.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 284.4.0 2us 2005-07-17 08:58:31.590 08 d4 8f 81 0b 00 00 00 07 00 00 00 08 09 e8 f9 284.4.16 68 b8 2f 81 00 00 00 00 ff ff ff ff 0d f0 ad de 284.4.32 12 00 00 00 b8 d7 8b fd 68 b8 2f 81 00 00 00 00 284.4.48 ff ff ff ff 0d f0 ad de 80 06 00 02 00 00 09 00 284.4.64 17.0 CTL 80 06 00 02 00 00 82 02 GET DESCRIPTOR 285.1.0 13us 2005-07-17 08:58:31.590 17.0 LEN 07 00 00 00 7 285.2.0 980us 2005-07-17 08:58:31.591 17.0 DI 07 05 02 02 40 00 00 ....@.. 285.3.0 2us 2005-07-17 08:58:31.591 17.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 285.4.0 2us 2005-07-17 08:58:31.591 08 d4 8f 81 0b 00 00 00 07 00 00 00 88 98 ed fc 285.4.16 68 b8 2f 81 00 00 00 00 ff ff ff ff 0d f0 ad de 285.4.32 12 00 00 00 b8 d7 8b fd 68 b8 2f 81 00 00 00 00 285.4.48 ff ff ff ff 0d f0 ad de 80 06 00 02 00 00 82 02 285.4.64 17.0 CTL 00 09 00 00 00 00 00 00 SET CONFIG 286.1.0 23us 2005-07-17 08:58:31.591 17.0 USTS 00 0f 00 c0 bad config desc 286.2.0 5us 2005-07-17 08:58:31.591 17.0 URB 18 00 00 00 00 0f 00 c0 f0 d3 8f 81 00 00 00 00 SELECT CONFIG 286.3.0 2us 2005-07-17 08:58:31.591 88 98 ed fc 00 00 00 00 286.3.16