AnsweredAssumed Answered

How to use CDC VCOM example with printf with SDK_2.2?

Question asked by Mark Sample on Aug 24, 2017
Latest reply on Sep 5, 2017 by Jing Pan

Using SDK 2.2 and a K22 Freedom board, I would like to implement a USB virtual com port and have the output of printf be directed to that com port.  I have the usb_device_cdc_vcom_lite example project working.


This question is very similar to this thread:

How to use CDC VCOM example with printf? 

except that there are some subtle changes with SDK_2.2 and it looks like the hooks are there to do this easily if you know what to do.  


Looks like the starting point is to define BOARD_USE_VIRTUALCOM in fsl_debug_console.c but after that I'm not sure what to do.


Any help would be greatly appreciated.


Thank you,