Problem with USB_CDC in KL25Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with USB_CDC in KL25Z

379 Views
arthshah
Contributor II

kerryzhou

Hello,

i am working with KL25Z.

i am using KSDK 1.3.0 and KDS 3.0 for given Example of USB_CDC in SDK.

i want to send data to UART TO USB, it's work fine but after some char. it had been give error like:

usb_device_send_data: DEV_GET_XD failed

and some times char are missing ex:i send 1234 from UART but USB receive 134 like this.

what was the problem?

please give any idea or solution to solve this problem.

thank you..!!

0 Kudos
2 Replies

254 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Arth Shah,

    Please try the newest KSDK2.2_FRDM-KL25 usb_cdc code.

   You can download KSDK2.2_FRDM-KL25 from this link:

Welcome to MCUXpresso | MCUXpresso Config Tools 

SDK Builder, board choose FRDM-KL25, then generate the code, and download it.

    I have test it on my side, it works ok.

pastedImage_2.png

Please try it at first!

Any question, just let me know!

   


Have a great day,
Kerry

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

0 Kudos

254 Views
mjbcswitzerland
Specialist V

Hi

See http://www.utasker.com/kinetis/FRDM-KL25Z.html
for industrial quality CDC operation ("FRDM-KL25Z USB-MSD Device using internal Flash with three composite CDC interfaces" for example).

If you need to use the KSDK CDC examples it is probably best to visit Eric Styger's https://mcuoneclipse.com/ and search for tips about configuring it and patching its bugs.

Regards

Mark

0 Kudos