This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to setup and run Cli Sample project?

Hi, I am using nRF52840-DK; Window 10; Embedded Studio and try to run sample project: C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\examples\peripheral\cli\pca10056\blank\ses

I can build and start run, but when I entry "Tab" key from Debug window; there is nothing happening.

Could anyone tell me what I did wrong? Do I need setup putty to connect to DK?

If I enter "hello" for example, that's is what I got:

Parents
  • Hi,

    Tab will not work in SES Debug Terminal as it does not interpret ASCII escape codes. You need to use other terminal like PuTTY (prefered).

    If you would like to stay with SES Segger Debug Terminal and do not observe doubled echo please execute command:

    `cli echo off` -> this only applies for SES Debug Terminal, do not use this command with PuTTY because you will not see an input.

    However, please do not use Segger Debug Terminal. To properly use CLI example you need to:

    1. Close SES Debug Terminal and switch off RTT in SES (Project settings->Debug->Debugger->RTT Enable-> Set to *No*). This is important to switch off RTT

    2. Start RTT session with JLink.exe

    3. Run Terminal like PuTTY and configure it according to the documentation (configuration is also important to have all buttons working as expected)

    http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_cli.html?cp=4_0_0_3_10_2#lib_cli_terminal_settings

    (Please read carefully and apart from general settings apply RTT specific settings)

Reply
  • Hi,

    Tab will not work in SES Debug Terminal as it does not interpret ASCII escape codes. You need to use other terminal like PuTTY (prefered).

    If you would like to stay with SES Segger Debug Terminal and do not observe doubled echo please execute command:

    `cli echo off` -> this only applies for SES Debug Terminal, do not use this command with PuTTY because you will not see an input.

    However, please do not use Segger Debug Terminal. To properly use CLI example you need to:

    1. Close SES Debug Terminal and switch off RTT in SES (Project settings->Debug->Debugger->RTT Enable-> Set to *No*). This is important to switch off RTT

    2. Start RTT session with JLink.exe

    3. Run Terminal like PuTTY and configure it according to the documentation (configuration is also important to have all buttons working as expected)

    http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_cli.html?cp=4_0_0_3_10_2#lib_cli_terminal_settings

    (Please read carefully and apart from general settings apply RTT specific settings)

Children
Related