3. Launch the application in your device

Follow these steps to execute the application in your device:

  1. Open a serial connection using any terminal program such as Tera Term, Minicom, Coolterm, or HyperTerminal. The examples in this documentation use Minicom to work with the device command line.
  2. Use the following settings:

    Parameter

    Value

    Port

    Serial port where the device is connected

    Baud rate

    115200

    Datat bits

    8

    Parity

    None

    Stop bits

    1

    Flow control

    None

  1. Log in to the device. The default login user is root without password.
  1. Transfer the application to your device using SCP in your host computer. If it is the first connection, you are prompted to continue. In this case, type yes and press Enter.
  2. ~> scp hello-world root@192.168.42.30:/home/root/
    The authenticity of host '192.168.42.30 (192.168.42.30)' can't be established.
    RSA key fingerprint is 46:91:93:11:31:d1:e0:b4:1e:3a:e9:fd:51:7f:bd:5a.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '192.168.42.30' (RSA) to the list of known hosts.
    hello-world                                                                                       100%   12KB  11.8KB/s   00:00   
    ~> 
  3. In the device terminal, launch the application you have just transferred:
    The message "Hello world!" is printed 10 times, one every second.
  4. #> /home/root/hello-world
    1 - Hello world!
    2 - Hello world!
    3 - Hello world!
    4 - Hello world!
    5 - Hello world!
    6 - Hello world!
    7 - Hello world!
    8 - Hello world!
    9 - Hello world!
    10 - Hello world!
    #>