KSDK 1.2 Demo: CDC / Virtual Com Port using MQX

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

KSDK 1.2 Demo: CDC / Virtual Com Port using MQX

Jump to solution
1,755 Views
markdobrosielsk
Contributor II

In KSDK 1.0, there was a USB Device demo for a CDC Virtual Com port. It could be built using a variety of RTOSes, including MQX. This demo doesn't appear to be available in KSDK 1.2 except for a bare metal version. I need an MQX version. I've been trying to cobble this together myself for a day, but to no avail so far. Can anyone help? I'm working on a FRDM-KL43Z.

Labels (1)
0 Kudos
Reply
1 Solution
1,402 Views
RadekS
NXP Employee
NXP Employee

Hi Mark,

I took frdmk64f project files, edited them and replaced all instances of K64 by KL43.

After that I opened eww workspace file and built all libraries (it shows some warnings, but it built anyway).

Finally I was able load project into FRDM-KL43Z board and successfully run (project runs as simple echo).

In attachment you can find modified files. Please, place it into:

KSDK_1.2.0\examples\frdmkl43z\demo_apps\usb\device\cdc\virtual_com

and use as example code.

I hope it helps you.

View solution in original post

0 Kudos
Reply
5 Replies
1,402 Views
RadekS
NXP Employee
NXP Employee

Hi Mark,

Thank you for your observation and note.

I will report this to USB team.

I suppose that Kinetis L parts do not have USB CDC example under RTOSes simply due to code size limitation. 32kB RAM (maximum size for KL43 and KL46) is probably not enough for full work of operating system together with USB stack.

In KSDK 1.2, USB CDC examples under RTOSes are available for all Kinetis K and Kinetis W24 boards.

I hope it helps you.

Have a great day,
RadekS

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

0 Kudos
Reply
1,402 Views
markdobrosielsk
Contributor II

Thanks for looking into this.

It's true that the L parts are very memory constrained, but KSDK 1.0 had a working USB CDC demo running under MQX. The chip hasn't changed, so the demo ought to still be valid.

0 Kudos
Reply
1,403 Views
RadekS
NXP Employee
NXP Employee

Hi Mark,

I took frdmk64f project files, edited them and replaced all instances of K64 by KL43.

After that I opened eww workspace file and built all libraries (it shows some warnings, but it built anyway).

Finally I was able load project into FRDM-KL43Z board and successfully run (project runs as simple echo).

In attachment you can find modified files. Please, place it into:

KSDK_1.2.0\examples\frdmkl43z\demo_apps\usb\device\cdc\virtual_com

and use as example code.

I hope it helps you.

0 Kudos
Reply
1,402 Views
markdobrosielsk
Contributor II

Thanks, works great! I appreciate your help on this.

0 Kudos
Reply
1,402 Views
DavidS
NXP Employee
NXP Employee

Hi Mark,

Good question and observation.

I will ask around.

Regards,

David

0 Kudos
Reply