How to enable DbgConsole with USB CDC Interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alexis,
Can you say something about release date for this feature?
BR
Anton

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]
