47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
Overview
|
|
========
|
|
The Hello World demo application provides a sanity check for the new SDK build environments and board bring up. The Hello
|
|
World demo prints the "Hello World" string to the terminal using the SDK 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.
|
|
|
|
Toolchain supported
|
|
===================
|
|
- Keil MDK 5.24a
|
|
- IAR embedded Workbench 8.22.2
|
|
- GCC ARM Embedded 7-2017-q4-major
|
|
- MCUXpresso10.2.0
|
|
|
|
Hardware requirements
|
|
=====================
|
|
- Mini/micro USB cable
|
|
- MAPS-KS22F256 board & MAPS-DOCK board
|
|
- Personal Computer
|
|
|
|
Board settings
|
|
==============
|
|
The hello_world demo is configured to use UART1 with PTE0 and PTE1 pins. To make JLink serial
|
|
device work, the jumpers on MAPS-DOCK board should be set as following:
|
|
- JP7 on MAPS-Dock: UART0 related jumpers connected
|
|
|
|
Prepare the Demo
|
|
================
|
|
1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
|
|
2. Open a serial terminal with the following 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.
|
|
|
|
Running the demo
|
|
================
|
|
The log below shows the output of the hello world demo in the terminal window:
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
hello world.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Customization options
|
|
=====================
|
|
|