Файл: Embedded system development and labs for ARM (R. Muresan, 2005).pdf

ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 13.06.2025

Просмотров: 2323

Скачиваний: 2

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

Embedded Systems Development and Labs; The English Edition

Port G

Pin function

Port G

Pin function

Port G

Pin function

PG0

EXINT0

PG3

EXINT3

PG6

EXINT6

PG1

EXINT1

PG4

EXINT4

PG7

EXINT7

PG2

EXINT2

PG5

EXINT5

PCONG access address: 0X01D20040 PDATG access address: 0X01D20044 PUPG access address: 0X01D20048 PCONG reset value: 0XFFFF

2.3.3 Bus Expansion

Embest EV44B0 development board has reserved the expansion ports for all pins and the user can conveniently expand memory and other external equipments according to their own needs. It can satisfy the application requirements of most products. Users need to make their own expansion board when they are expanding their circuit design. As long as the definition (signals) of the expansion board port corresponds to the expansion port (signals) in the development board. The definition of expansion interface A and B are completely the same. This is shown in Figure 2-25.

J13

J14

J13

J14

1

VDD33

1

VDD33

1

VDD33

1

VDD33

VDD33

VDD33

VDD33

VDD33

2

2

2

2

D7

PD0

D7

PD0

3

3

3

3

D6

PD1

D6

PD1

4

4

4

4

D5

PD2

D5

PD2

5

5

5

5

D4

PD3

D4

PD3

6

6

6

6

D3

PD4

D3

PD4

7

7

7

7

D2

PD5

D2

PD5

8

8

8

8

D1

PD6

D1

PD6

9

9

9

9

D0

PD7

D0

PD7

10

10

10

10

GND

GND

GND

GND

11

11

11

11

D15

PE3

D15

PE3

12

12

12

12

D14

VDDRTC

D14

VDDRTC

13

13

13

13

D13

AVCOM

D13

AVCOM

14

14

14

14

D12

AREFB

D12

AREFB

15

15

15

15

D11

AREFT

D11

AREFT

16

16

16

16

D10

GND

D10

GND

17

17

17

17

D9

AIN7

D9

AIN7

18

18

18

18

D8

AIN6

D8

AIN6

19

19

19

19

GND

AIN5

GND

AIN5

20

20

20

20

PC0

AIN4

PC0

AIN4

21

21

21

21

PC1

AIN3

PC1

AIN3

22

22

22

22

PC2

AIN2

PC2

AIN2

23

23

23

23

PC3

AIN1

PC3

AIN1

24

24

24

24

PC4

AIN0

PC4

AIN0

25

25

25

25

PC5

GND

PC5

GND

26

26

26

26

PC6

GND

PC6

GND

27

27

27

27

PC7

PE7

PC7

PE7

28

28

28

28

GND

PE6

GND

PE6

29

29

29

29

PC8

PE5

PC8

PE5

30

30

30

30

PC9

PE4

PC9

PE4

31

31

31

31

PC10

IICSCL

PC10

IICSCL

32

32

32

32

PC11

IICSDA

PC11

IICSDA

33

33

33

33

PC12

GND

PC12

GND

34

34

34

34

PC13

PF5

PC13

PF5

35

35

35

35

PC14

PF6

PC14

PF6

36

36

36

36

PC15

PF7

PC15

PF7

37

37

37

37

GND

PF8

GND

PF8

38

38

38

38

GPE1

GND

GPE1

GND

39

39

39

39

GPE2

GND

GPE2

GND

40

40

40

40

HEADER 20X2

HEADER 20X2

HEADER 20X2

HEADER 20X2

Figure 2-25 Bus Expansion Interface Definition

50


Embedded Systems Development and Labs; The English Edition

2.4 The Usage of Embest IDE

2.4.1 Embest IDE Main Window

To step into Embest IDE for ARM, just run Embest IDE.exe. Embest IDE user interface consists of an integrated set of windows, tools, menus, directories, and other elements that allow you to create, test, and debug your applications. The main window of Embest IDE is shown in Figure 2-26. The Embest IDE main Window includes Title Bar, Menu Bar (1), Tools Bar (2), Project Management Window (3), Data Watch Window (4), Status Bar (5), Memory Window (6), Output Window (7), Variable Window (8), Stack Window (9), Register Window (10) and Source Code Window (11).

Figure 2-26 Embest IDE Main Window

2.4.2 Project Management

1. An Introduction to the Project Manager

The project is an important concept for Embest IDE. It is a basic architecture for users to organize source files, set compile and linking options, generate debug information, and finally generate the BIN file for the target processor. The Embest IDE project management functions include:

(1) File management in a Project Management Window (Figure2-27).

51

Embedded Systems Development and Labs; The English Edition

Figure2-27 Project Management Window

(2)Provides dialogs for microprocessor/debug device selection and settings, configuration of debug information, compiler/assembly/linker settings, etc.

(3)Provides Build menu and tool buttons and output build information the Build page in Output Window (Figure 2-28).

Figure 2-28 Build Page of Output Window

2. Create a Project

A workspace consists of one or multiple projects. The steps of creating a project are the followings:

(1)Select FileÆ New Workspace, IDE will prompt a dialog for creating a new project. The dialog box is shown in Figure 2-29.

(2)Fill in the project name, use the default directory or select another directory for saving the project.

(3)Click OK. A new project will be created. A new workspace with the same name as the project’s name will also be created. Also for an existing workspace new projects can be added by right clicking the workspace name in the Project Management Window.

52

Embedded Systems Development and Labs; The English Edition

Figure 2-29 Crate a New Project

3. Create New Source File

Select FileÆ New, IDE will open a new edit window without a title. The user can input and edit source code in this window and save it.

4. Add Files to Project

Select ProjectÆAdd To ProjectÆFiles or right click the project name bar in the Project Management Window and the IDE will open a new dialog box for file selection. This is shown in Figure 2-30.

Figure 2-30 Add Source Files to a Project

5. Set Active Project

If there are more than one project in the workspace, the user can activate any of these projects by right clicking the project and select “Set as Active Project”. This is shown in Figure 2-31.

53

Embedded Systems Development and Labs; The English Edition

Figure 2-31 Color Icon and Right Click to Select Active Project

2.4.3 Project Basic Settings 1. Processor Settings

Select ProjectÆSettings… The IDE will open a new dialog box. Select the “Processor” page as shown in Figure 2-32. Embest IDE for ARM supports ARM series microprocessor and GNU build tools.

Figure 2-32 Processor Settings Dialog

2. Emulator Settings

54


Embedded Systems Development and Labs; The English Edition

Select ProjectÆSettings… The IDE will open a new dialog box. Select the “Remote” page shown in

Figure 2-33.

Figure 2-33 Emulator Connection Settings Dialog

If the software emulator is used, the “Simarm7” should be selected. If Power ICE is used, the “PowerIceArm7” should be selected. If a parallel port cable is used in connecting PC and ICE, “Parallel Port” should be selected. Only the emulator supported download speed is valid when you select the download speed for emulators. Power ICE for ARM supports all speeds.

Figure 2-34 Embest Power ICE for ARM Emulator Download Speed Support

55

Embedded Systems Development and Labs; The English Edition

3. Debugging Settings

The debug related settings are shown in Figure 2-35. There are the following three options: 1) General

Download file: Symbol file name and its directory. Symbol file includes debug information. Normally symbol file is an elf format file or a coff format file.

Action after connected: There are three ways for selection:

¾None -- No actions after the IDE connected to target.

¾Auto download – After the IDE is connected to the target, the file will be automatically downloaded to the board.

¾Command script -- After the IDE is connected to the target, a script file will be executed first.

Figure 2-35 Debug General Settings

2) Download Settings

Download settings page is shown in Figure 2-36.

Download file: Symbol file name and its directory. Symbol file includes debug information. Normally the symbol file is an elf format file or a binary file. When download as an elf file the system will automatically convert it into a binary file.

Download verification: Automatically compare the downloaded file if it is the same as the original file.

Download address: The downloaded file will be stored from this address.

Execute program from:

¾Don’t care – After download the system’s PC (program counter) will not change.

¾Download address – After download the system will execute from this address.

56

Embedded Systems Development and Labs; The English Edition

¾Program entry point -- After download, the system will set the PC to the program entry point.

Execute until: The last symbol the system will execute after the download.

Figure 2-36 Debug Download Settings

3) Memory Maps Settings

If the memory map file is used, select this item. Map file is used to control the memory read and write as shown in Figure 2-32.

57

Embedded Systems Development and Labs; The English Edition

Figure 2-37 Debug Memory Maps Settings

4. Directory Settings

If users want to trace driver function library and programs in function library, select this item. Shown in Figure 2-37.

58


Embedded Systems Development and Labs; The English Edition

Figure 2-38 Directory Settings Dialog

5. Compiler Settings

The compiler settings are shown in Figure 2-39. All of the settings in this page will be displayed in the “Compile Options” edit window. The users can manually edit the Compile Options but need to follow the GNU rules.

a) Compiler General Settings

The compiler general setting is shown in Figure 2-39.

Include Directory – header files directory.

Object files location – the directory of object files.

Preprocessor Definitions – Define the pre-compile micros.

Figure 2-39 Compiler General Settings

b) Compiler Warning Options

The compiler warning setting is shown in Figure 2-40.

59

Embedded Systems Development and Labs; The English Edition

Figure 2-40 Compiler Warning Settings

c) Compiler Debug/Optimization Settings

The compiler debug/optimization setting is shown in Figure 2-41.

Figure 2-41 Compiler Debug/Optimization Settings

60