
Figure 23. Selecting the Dumb Terminal option from the initial Select device dialog box in MTK2.
The serial port will need to be reconfigured before opening it, as it will still be configured to the VCP of the
USB-to-serial adapter. From the MTK menu, select
Options
Configure Serial Port
. This time, the dialog
box (
Figure 24
) will provide an additional speed (baud rate) setting. Select the physical COM port the serial
cable is connected to and select “115200” for the Speed setting. This is the baud rate used in the example
code.
Figure 24. Configuring the serial port for terminal emulation in MTK2.
Lastly, select
Target
Open COMx at 115200 baud
from the menu. The main section of the MTK window
will turn white to indicate that the port has successfully been opened.
Running the Example Code
Before running the code, we recommended opening a terminal emulator like MTK and connecting a serial
cable from the PC to J2 on the EV kit board to view additional output. To run the sample code, load the hex
file through MTK, directly download the code in Rowley, or use the debugger (in IAR or Rowley).
Page 20 of 22