Hi Koorosh,
I'm assuming you are using the KDS_3.1+KSDK_1.3 and the hello world for C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\demo_apps\hello_world\kds .
I had to do the following modifications to get the TWR-K64F+TWR-SER working for UART5 to the DB-9 connector.
hardware_init.c
void hardware_init(void) {
/* enable clock for PORTs */
CLOCK_SYS_EnablePortClock(PORTA_IDX);
CLOCK_SYS_EnablePortClock(PORTC_IDX);
#if 1 //DES 1=needed when UART5 of TWR-K64F used with TWR-SER card, 0=default code
CLOCK_SYS_EnablePortClock(PORTE_IDX);
#endif
/* Init board clock */
BOARD_ClockInit();
dbg_uart_init();
}
board.h
/* The UART to use for debug messages. */
#ifndef BOARD_DEBUG_UART_INSTANCE
#if 0 //DES 1=UART1 (VCOM)...default code, 0=UART5(TWR-SER)...test code
#define BOARD_DEBUG_UART_INSTANCE 1
#define BOARD_DEBUG_UART_BASEADDR UART1
#else
#define BOARD_DEBUG_UART_INSTANCE 5
#define BOARD_DEBUG_UART_BASEADDR UART5
#endif
#endif
Regards,
David