I was able to successfully built and run/debug the hello_world_twrk64f120m example project from SDK for the KDS.
I 'm able to debug and flash LEDs however I am not sure how to display the string "hello_world" . I see in the code that UART1 is configured at 115200 bps and is used as debug port .
There is a virtual com port which on my PC is com4 and there is jumpers on TWR_k64f120m that connects the UART1's TX/RX to this virtual port.
So I set the jumpers on the board and open a terminal and nothing is displayed .
Do I need to connect to the actual TX/RX pins of the UART1 on TWR_64K120 board and then connect to the com port on my PC using a USB/RS232 jack?
This virtual com port is a bit confusing for me.
Thank you for your guidance.
Koorosh Hajiani
Hello Koorosh,
- Please be sure the virtual com port and the actual UART on your board is which UART, about how
to check which port , you can refer to here How to use printf() to print string to UART in KDS3.0 + KSDK1.3 about the chapter 2->
Chapter 2 introduces how to check which UART port is used when use printf() to print string on the FRDM board and TOWER board .
- About this TWR-K64F120 board , if you want use the virtual com to print , please connect the 2-3 of J10 and also connect 2-3 of j15 .
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you Alice,
I have the hello world demo working on TWR_K64f120 board.I can communicate over UART1 to the PC virtual com port using open SDA USB
For the next step I connected this board to TWR-SER2 board using primary/secondary TWR board.
My intension is to use the DB9 connector on SER2 board via USB-COM jack to communicate to the PC over the serial port.
Now the Demo "Hello World" uses UART1 on the TWR_K64f120 board however the connection between K64f120 and SER2 board via the TWR is:
Connect MCU’s UART1_RX to primary Elevator (A41)
Connect MCU’s UART1_RX to primary Elevator (A42)
Which are UART0 RX/TX pins.
Is it possible to connect UART1 pins of the TWR_K64F10 to the UART1 pins of the SER2 board?
My understanding is that the SER2 DB9 connector is wired to UART1 and K64F120 UART1 goes either to open SDA virtual com port or the UART0 of the primary TWR.
Do I NEED TO WRITE CODE FOR THE SER2 TO MIRROR UART0 TO UART1?
Regards,
Koorosh Hajiani