How to enable DbgConsole with USB CDC Interface

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable DbgConsole with USB CDC Interface

2,497件の閲覧回数
whata
Contributor III

Hi,

MCU : MK22FN512VLH12

SDK : SDK_2.7.0

IDE:  11.1.1_3241

I've noticed that fsl_debug_console can be configured with USB CDC interface as endpoint, however there is no clear documentation on how to do this. New Project option allows only UART as endpoint for debug console. I've attempted to copy usb related files present in SDK/component/serial_manager to my project/component/serial_manager and added the following defines

SERIAL_PORT_TYPE_UART=0
SERIAL_PORT_TYPE_USBCDC=1
DEBUG_CONSOLE_TRANSFER_NON_BLOCKING

This however seems to be insufficient as. Can someone explain what additional steps are needed to make this work.

ラベル(2)
0 件の賞賛
返信
5 返答(返信)

2,290件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Anton.

As you mention, the debug console has some files indicating the implementation of the CDC class, but this feature is not supported yet. To use the CDC class I will suggest starting from the CDC examples included in the SDK.

Best Regards,

Alexis Andalon

0 件の賞賛
返信

2,290件の閲覧回数
whata
Contributor III

Alexis,

Can you say something about release date for this feature?

BR

Anton

0 件の賞賛
返信

2,290件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Just a reminder that this has been available for the last 8 years in the open source uTasker project and used in millions of products (and proven stability) so no one need to wait if they need the functionality for work today.

USB projects can also run on i.MX RT boards with zero development effort - just switch a single define over from _KINETIS to _iMX

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 件の賞賛
返信

2,290件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Anton,

Unfortunately, there is no news when this feature will be added but look forward to the new MCUXpresso releases.

Best Regards, 

Alexis Andalon

0 件の賞賛
返信

2,290件の閲覧回数
mjbcswitzerland
Specialist V

Hi

See also the following where command line interfaces on both UART and USB-CDC are standard:
https://www.utasker.com/kinetis/FRDM-K22F.html

Free open source version available that allows effort-free professional solutions.

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 件の賞賛
返信