KSDK 1.2 Demo: CDC / Virtual Com Port using MQX

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

KSDK 1.2 Demo: CDC / Virtual Com Port using MQX

跳至解决方案
1,749 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
1,396 次查看
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 项奖励
回复
5 回复数
1,396 次查看
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 项奖励
回复
1,396 次查看
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 项奖励
回复
1,397 次查看
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 项奖励
回复
1,396 次查看
markdobrosielsk
Contributor II

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

0 项奖励
回复
1,396 次查看
DavidS
NXP Employee
NXP Employee

Hi Mark,

Good question and observation.

I will ask around.

Regards,

David

0 项奖励
回复