I am trying to modify a demo application on KDS 2.0 with KSDK 1.1.0. I only have twr-k60d110m and TWR-IND-IO. Am i being able to change
default setting to UART3? Does anyone know?
So hey guys thanks for helping me. I still dont know how, but i will try it later.
Hi Yaran Nan,
I don't know which demo are you using.
let's take hello_world_twrk60d100m as an example.
To modify the debug console output to UART3, you need just modify BOARD_DEBUG_UART_INSTANCE from 5 to 3.
This Macro is defined in line 43 in board.h.
hope it helps!
Hi Yaran
I can't help with the demos but if you want full flexibility using KDS you can look at µTasker Kinetis TWR-K60D100M support
1. Choose the UART to be used as follows (example of opening the interface on any channel (0..5) and sending a "Hello, World!" output.
TTYTABLE tInterfaceParameters;
tInterfaceParameters.Channel = 3; // 0, 1, 2, 3 ,4 or 5
tInterfaceParameters.ucSpeed = SERIAL_BAUD_115200;
tInterfaceParameters.Config = (CHAR_8 + NO_PARITY + ONE_STOP + USE_XON_OFF + CHAR_MODE);
tInterfaceParameters.ucDMAConfig = UART_TX_DMA;
..
SerialPortID = fnOpen(TYPE_TTY, FOR_I_O, &tInterfaceParameters);
fnWrite(SerialPortID, "Hello, World!", 13);
2. Fine tune the UART's pin multiplexing by choosing from a set of defines:
//#define UART0_A_LOW | // alternative UART0 pin mapping |
//#define UART0_ON_B | // alternative UART0 pin mapping |
//#define UART0_ON_D | // alternative UART0 pin mapping |
//#define UART1_ON_C | // alternative UART1 pin mapping |
//#define UART2_ON_E | // alternative UART2 pin mapping |
//#define UART2_ON_F | // alternative UART2 pin mapping |
//#define UART3_ON_B | // alternative UART3 pin mapping |
//#define UART3_ON_F | // alternative UART3 pin mapping |
#define UART3_ON_C | // alternative UART3 pin mapping |
//#define UART4_ON_C | // alternative UART4 pin mapping |
//#define UART5_ON_D | // alternative UART5 pin mapping |
Regards
Mark
Kinetis: µTasker Kinetis support
K60: µTasker Kinetis TWR-K60N512 support / µTasker Kinetis TWR-K60D100M support / µTasker Kinetis TWR-K60F120M support
UARTs: http://www.utasker.com/docs/uTasker/uTaskerUART.PDF
For the complete "out-of-the-box" Kinetis experience and faster time to market