The CLI Example shows how to use the CLI library. It defines three instances of CLI working on different transport layers:
- RTT
- UART
- USB CDC ACM (for PCA10056 only)
Testing
Test the CLI Example application by performing the following steps:
- Compile and program the application.
- Start a terminal emulator like PuTTY (recommended) with the following Terminal settings, and establish the connection:
- Serial: for UART or USB CDC transport.
- Telnet, port 19021: for RTT transport. For establishing RTT session, use
JLink.exe
and not J-Link Viewer.
- You can now start using the command line interface.
- Press the Tab button to see all available commands.
- Test functionality of each command. If you need a hint you can call commands with option -h or –help.