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:
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.