MCUXpresso_MKS22FN256xxx12/boards/mapsks22/demo_apps/shell
2022-06-18 14:53:46 +08:00
..
armgcc Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
board.c Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
board.h Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
clock_config.c Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
clock_config.h Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
pin_mux.c Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
pin_mux.h Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
readme.txt Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
shell.bin Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
shell.c Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00
shell.xml Initial SDK 2.4.1 2022-06-18 14:53:46 +08:00

Overview
========
The Shell Demo application demonstrates to control Leds by commands.

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 USB cable
- MAPS-KS22F256 board
- Personal Computer

Board settings
==============
No special settings are required.

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
================
When the example runs successfully, the following message is displayed in the terminal:

~~~~~~~~~~~~~~~~~~~~~
SHELL (build: Jan 25 2016)
Copyright (c) 2015 Freescale Semiconductor

SHELL>> help

"help": Lists all the registered commands

"led arg1 arg2":
 Usage:
    arg1: 1|2|3|4...            Led index
    arg2: on|off                Led status

"exit": Exit program

SHELL>> led 1 on
SHELL>> led 1 off
SHELL>> led 2 on
SHELL>> led 2 off
SHELL>> led 3 on
SHELL>> led 3 off
SHELL>> led 4 on
SHELL>> led 4 off
SHELL>>
~~~~~~~~~~~~~~~~~~~~~
Customization options
=====================