Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Hello World Demo

This demo application demonstrates the Hello World demo.

Overview

The Hello World project is a simple demonstration program that uses the KSDK software. It prints the "Hello World" message to the terminal using the KSDK UART drivers. The purpose of this demo is to show how to use the UART and to provide a simple project for debugging and further development.

Supported Platforms

These Freescale Freedom development platforms and Tower System modules are supported by the KSDK Hello World demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware Settings

Prepare the Demo

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

For detailed instructions, see the appropriate board User's Guide.

Run the demo

This is an example how to run the demo.

Hello World!
    

Communication Interface Settings:

This section provides the information to customize the Hello World demo.

The Hello World demo is configured to use these port pins for the platforms by default. If applicable for the board, jumpers are specified to select between serial output via OpenSDA and serial output via TWR-SER.

Platform TX MCU Pin (Board Pin) RX MCU Pin (Board Pin) Module Instance
FRDM-K22F PTE0 (N/A) PTE1 (N/A) UART1
FRDM-K64F PTB17 (N/A) PTB16 (N/A)

UART0

    <tr>
         <th rowspan="1">FRDM-KL02Z</th>
         <td align="center">PTB2</th>
         <td align="center">PTB1</th>
         <td align="center">UART0</th>
    </tr>



    <tr>
         <th rowspan="1">FRDM-KL03Z</th>
         <td align="center">PTB2</th>
         <td align="center">PTB1</th>
         <td align="center">LPUART0</th>
    </tr>


    <tr>
         <th rowspan="1">FRDM-KL25Z</th>
         <td align="center">PTA2</th>
         <td align="center">PTA1</th>
         <td align="center">UART0</th>
    </tr>

    <tr>
         <td rowspan="1">FRDM-KL26Z</td>
         <td align="center">PTA2</td>
         <td align="center">PTA1</td>
         <td align="center">LPSCI0</td>
    </tr>

     <tr>
         <td rowspan="1">FRDM-KL43Z</td>
         <td align="center">PTA2</td>
         <td align="center">PTA1</td>
         <td align="center">UART0</td>
    </tr>

    <tr>
         <th rowspan="1">FRDM-KL46Z</th>
         <td align="center">PTA2 (J1-4)</th>
         <td align="center">PTA1 (J1-2)</th>
         <td align="center">UART0</th>
    </tr>
    <tr>
         <th rowspan="1">FRDM-KW24</th>
         <td align="center">PTE0 (N/A)</th>
         <td align="center">PTE1 (N/A)</th>
         <td align="center">UART1</th>
    </tr>
    <tr>
         <td rowspan="1">MRB-KW01</td>
         <td align="center">PTA2 (-)</td>
         <td align="center">PTA1 (-)</td>
         <td align="center">LPSCI0</td>
    </tr>


    <tr>
         <td rowspan="1">TWR-K21D50M</td>
         <td align="center">PTE17</td>
         <td align="center">PTE16</td>
         <td align="center">UART2</td>
    </tr>

     <tr>
         <th rowspan="1">TWR-K21F120M</th>
         <td align="center">PTD8</th>
         <td align="center">PTD9</th>
         <td align="center">UART1</th>
    </tr>

    <tr>
         <th rowspan="1">TWR-K22F120M</th>
         <td align="center">PTE0 (J30)</th>
         <td align="center">PTE1 (J29)</th>
         <td align="center">UART1</th>
    </tr>


    <tr>
         <th rowspan="1">TWR-K24F120M</th>
         <td align="center">PTE1</th>
         <td align="center">PTE0</th>
         <td align="center">UART1</th>
    </tr>

    <tr>
         <th rowspan="1">TWR-K60D100M</th>
         <td align="center">PTE9</th>
         <td align="center">PTE8</th>
         <td align="center">UART5</th>
    </tr>

    <tr>
         <th rowspan="1">TWR-K64F120M</th>
         <td align="center">PTC4 (J15)</th>
         <td align="center">PTC3 (J10)</th>
         <td align="center">UART1</th>
    </tr>


    <tr>
         <th rowspan="1">TWR-KL43Z48M</th>
         <td align="center">PTE23</th>
         <td align="center">PTE22</th>
         <td align="center">UART2</th>
    </tr>

    <tr>
         <th rowspan="1">TWR-KV10Z32</th>
         <td align="center">PTB17</th>
         <td align="center">PTB16</th>
         <td align="center">UART0</th>
    </tr>


    <tr>
         <th rowspan="1">TWR-KV31F120M</th>
         <td align="center">PTB17 (J23)</th>
         <td align="center">PTB16 (J22)</th>
         <td align="center">UART0</th>
    </tr>

    <tr>
         <th rowspan="1">TWR-KV46F150M</th>
         <td align="center">PTE0 (J505-4)</th>
         <td align="center">PTE1 (J506-4)</th>
         <td align="center">UART1</th>
    </tr>

    <tr>
         <th rowspan="1">TWR-KW24D512</th>
         <td align="center">PTE0 (J18-2)</th>
         <td align="center">PTE1 (J18-5)</th>
         <td align="center">UART1</th>
    </tr>

    <tr>
         <th rowspan="1">USB-KW24D512</th>
         <td align="center">N/A</th>
         <td align="center">N/A</th>
         <td align="center">USB CDC Virtual COM</th>
    </tr>


</table>