KINETIS_120MHZ_SC USBFS_device example High Speed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KINETIS_120MHZ_SC USBFS_device example High Speed

跳至解决方案
1,431 次查看
peterweatherall
Contributor I

Looking for information on what needs to be done to modify the KINETIS_120MHZ_SC USBFS_device example for high speed USB (480Mb/s) operation using the TWR-SER2 board. Thanks.

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
1,218 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Peter,

Please check Kinetis USB Stack V4.1.1 from below link:

USB Stack

Customer can select K70 project and set "HIGH_SPEED_DEVICE" macro at <user_config.h> file.

#if (defined MCU_MK70F12) || (defined __MCF52277_H__)

    #define  HIGH_SPEED_DEVICE    (1)

#else

    #define  HIGH_SPEED_DEVICE    (0)

#endif


Wish it helps.

Best regards,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,219 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Peter,

Please check Kinetis USB Stack V4.1.1 from below link:

USB Stack

Customer can select K70 project and set "HIGH_SPEED_DEVICE" macro at <user_config.h> file.

#if (defined MCU_MK70F12) || (defined __MCF52277_H__)

    #define  HIGH_SPEED_DEVICE    (1)

#else

    #define  HIGH_SPEED_DEVICE    (0)

#endif


Wish it helps.

Best regards,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,218 次查看
peterweatherall
Contributor I

Ma, I am trying to implement a vendor specific high speed device that implements a upstream (IN) speed test over a 512 byte bulk endpoint. The basis for this was copied from the CDC device example out of USB stack 4.1.1. The non control endpoints are are initialized with ZLT = 1:

  (void)_usb_device_init_endpoint(&controller_ID, ep_struct->ep_num, ep_struct->size, ep_struct->direction, ep_struct->type, 1);


The device calls USB_Class_Send_Data() with 5*4096 bytes of data when the USB_APP_ENUM_COMPLETE event is detected, and then sends another 5*4096 byte block every time the

USB_APP_SEND_COMPLETE event occurs. This is working but it appears that the host also gets a zero length packet after each 5*4096 byte block. My question is how do I disable the zero length condition after each block I am trying to simulate a continuous stream. Thanks.

.

0 项奖励
回复