KDS version is 2.0.0
It is probably easier to describe the steps.
1) I created a new KSDK project for FRDM-K22F (File-New-KDS Project-Clicked Processor Expert-Finish).
2) Double-clicked fsl_debug_console in Components Library to instance DbgCs1.
3) Click on DbgCs1 in components view and set device to UART1 in Component Inspector.
4) Set Rx/Tx pins are set to PTE1/PTE0.
5) Set baud rate to 115200.
6) Click "Generate Processor Expert Code" button.
7) Add #include "DbgCs1.h" to main.c
8) Add the code below to the main function
bool start = true;
for(;;)
{
if (start)
{
debug_printf("\n\r Process started\n\r");
start = false;
}
}
9) Start terminal emulator to communicate with com port associated with USB port connected to FRDM-K22F
10) Build, debug and press F8 key to resume. No message.
To fix it go to line 67 of file DbgCs1.h and change
#define BOARD_DEBUG_UART_INSTANCE 2
to
#define BOARD_DEBUG_UART_INSTANCE 1
Re-build-debug - hit F8 and the "Process started" message now appears.
I don't see how to upload a file.