ESP DIGI-VIEW 4 System User Manual

Browse online or download User Manual for Security access control systems ESP DIGI-VIEW 4 System. Digi ESP for Embedded Linux: Building Your First Application

  • Download
  • Add to my manuals
  • Print
  • Page
    / 30
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
1
This tutorial introduces the power and features of Digi ESPfor Embedded Linux as a development
environment. It shows how to create a simple Linux application, transfer it to a target development board,
debug it, and run it. This tutorial takes about 30 minutes. For more information on concepts and tasks in
this tutorial, see the Digi ESP Online Help, by selecting Help > Help Contents from the Digi ESP menu.
Table of contents
1. Conventions in this tutorial ........................................................................................ 2
2. Introduction .................................................................................................................. 2
3. Check and change configuration settings as needed ............................................. 3
4. Start Digi ESP ............................................................................................................... 6
5. Key components of the Digi ESP user interface ...................................................... 8
6. Work with the target .................................................................................................... 9
7. Create a template-based managed make project ................................................... 19
8. Open the sample application source code.............................................................. 23
9. Build the sample application .................................................................................... 24
10. Run the sample application in connection with the target .................................... 26
11. Debug the application ............................................................................................... 28
12. What's next? ............................................................................................................... 30
90000853_F
Page view 0
1 2 3 4 5 6 ... 29 30

Summary of Contents

Page 1 - Table of contents

1 This tutorial introduces the power and features of Digi ESP™ for Embedded Linux as a development environment. It shows how to create a simple Li

Page 2 - 2. Introduction

10 In the View Title, type Serial Terminal. In the Connection Type combo, select Serial. The Serial Port must be configured with the device node in

Page 3 - 3.1. Display settings

11 6.2.1. Granting access to the serial port If the serial port cannot be accessed, the most probable reason is that the serial port device node d

Page 4 - 3.2. Network settings

12 6.3. Power up the target Power on the target development board using the main slider power switch on the development board (usually located at

Page 5 - 3.3. Keyboard layout

13 • EEE.EEE.EEE.EEE is the IP address of the host computer. The last command, saveenv, saves the target's network settings in NVRAM. 6.4.2.

Page 6 - 4. Start Digi ESP

14 6.6. Use common Linux commands After Linux starts successfully, a basic shell is available in the Serial Console. Try entering some Linux comma

Page 7

15 6.8. Connect to the target’s web server A web server is included and started by default. The web server serves a default web page that resides

Page 8

16 Click the Validate Connection button to test this connection. This action validates bidirectional connectivity via telnet.

Page 9 - 6. Work with the target

17 If Digi ESP can reach the target's IP address, this message is displayed: If it is not displayed, verify that the network settings of the

Page 10

18 Click on the Hardware tab to identify the hardware components of the target device. Depending on the model type of the development board, select

Page 11 - # chmod 666 /dev/ttyS0

19 7. Create a template-based managed make project Next, create a new application project. Select File > New > Project... The New Project w

Page 12 - 6.4.1. Wired Ethernet

2 1. Conventions in this tutorial This tutorial uses these conventions, frames, and symbols to display information: Convention Use Style New term

Page 13 - seconds, the boot loader

20 The Sample Selection page is displayed. The Project Type combo selects which template-based project to create. Select Digi EL Executable, which

Page 14

21 The next dialog lets you choose the Digi EL environment and toolchain to build the project with. Select the target hardware platform to let the

Page 15

22 The last page of the wizard shows a summary of the selections. Click Finish to create the application project. The newly created project appear

Page 16

23 8. Open the sample application source code In the Project Explorer view, select the application project hello_world_c and expand it to see its

Page 17

24 This is a very simple example; the Outline view becomes much more useful when working with larger source files. This is how it would look like i

Page 18

25 When the build process is launched, the Console view displays output messages of the building tools. The Problems view lists any warnings and e

Page 19

26 10. Run the sample application in connection with the target Once the sample project is built without any problem, launch it remotely. To do so,

Page 20

27 In the Name text box, type the name of the launch configuration. For example, Hello World launch configuration. Below the Name field, the launch

Page 21

28 The Remote Console view is opened to display the input/output of the application running on the target device. If the Remote Console view is c

Page 22

29 Click Debug to start the debug process. A prompt is displayed asking whether to switch to the Debug perspective. Click Yes.

Page 23

3 3. Check and change configuration settings as needed Using Digi ESPTM requires several system configuration settings on the host computer to be

Page 24

30 The Debug perspective has a layout oriented to debugging. The application is remotely launched and stops at the main function's first line

Page 25

4 In the Computer Administration section, click Monitor & Display. 3.2. Network settings To establish the connection between the development

Page 26

5 3.2.1. Configure the host's network settings If the Linux host machine has a known and configured IP address, skip this step. The host com

Page 27

6 4. Start Digi ESP To start Digi ESP, click the Digi ESP icon on the desktop: If no icon is displayed, run this command from the shell: $ /us

Page 28 - 11. Debug the application

7 The Welcome page is displayed. Click on the arrow on the right side of the page to close the Welcome window and return to the Workbench. The We

Page 29

8 5. Key components of the Digi ESP user interface The figure shows key components and terms in the ESP user interface, including toolbars, perspe

Page 30 - 12. What's next?

9 6. Work with the target The target prints out messages in one of the serial ports (see your specific Quick Start Guide sheet). Working with the

Comments to this Manuals

No comments