(1) Create a New Project:

(1) Create a New Project:

User Guide for Embest IDE for ARM7

By Dr. Ricky WH Lau

(1) Create a New Project:

Select New Workspace from File menu. A Create a New Project dialog window will pop up. Enter the contents as shown in Figure 1.

Figure 1

Click OK button and a new project will be created. A new workspace will also be created using the same name with the project. In the workspace window, the new workspace and project will be opened by the IDE. A directory “proj1” will be created with location as shown in the above window.

Note: By right clicking on the “Workspace ‘name’: n project(s)” that appears in the left window after a workspace ‘name’ is created, a new project can be added to the workspace by selecting “Add New Project to Workspace…

Figure 2

Normally, n represents the total number of projects that are currently in the workspace. You will have to right click the “proj1 files” and select “Set as Active Project” in order to build the project.

P. 1

Figure 3

(2) Create a Source File:

Select File

New and a new editor window without a specific title will appear. Type in the source code and save the file as add_num.s in the proj1 directory.

Figure 4

P. 2

(3) Add a Source File to the Project.

First right-click “Project Source Files

→ “Add Files to Folder…

Figure 5

A file selection dialog will appear and select the file add_num.s that has just been created.

Figure 6

Finally, the source file is added to the project and the following screen should appear.

Figure 7

P. 3

(4) Processor Settings:

Select Project

Settings…. , The project settings dialog will appear. Select the “Processor” page and choose the details as shown in Figure 8., then click OK.

Figure 8

If you do not see the option field for Build Tools as shown in Figure 8, you will have to close the IDE and then follow the following procedures: ii. Install the IDEdlgPack.EXE progeam. iii. Run the DlgSetFix.exe program in the "Embest IDE\tools" directory, modify the two parameters, Height and AvecharWidth as shown in the dialog window as shown in

Figure 9. iv. Run the IDE and open the dialog window of project settings to observe whether the dialog window displays normally. v. Repeat the step (iii) and step (iv) until a normal Project Settings window display is obtained.

Figure 9

P. 4

(5) Generate Object Code:

Select Build

Build ALL to generate the object code.

(6) Remote Settings:

Select Project

Settings…. , The project settings dialog will appear.

Select the “Remote” page and choose the details as shown in Figure 9.

Figure 10

Note: Select EasyICEArm7 for Remote device for download program to the development system.

(7) Debug Settings:

Select “Debug” page to set the debug module shown in Figure 11.

Figure 11

P. 5

The download address of the development system used for the experiment is 0x0C000000 and that is the start address of the text segment used by GNU assembler. Because the

“Assembler” and “Linker” page do not need setting, the default values are used. So the start address of text segment is started from 0x0C000000.

Figure 12

(8) Assembler Settings:

For General setting, set Object Files Location as .\debug and other as default.

Figure 13

P. 6

Select Code Generation from Category, and click the options as shown in Figure 14 and then click OK.

Figure 14

(9) Linker Settings:

Select General from Category, set the details as follows:

Figure 15

P. 7

Select Image Entry Options from Category, set details as follows:

Figure 16

You may now select Save Workspace from File to save your work.

(10) Generate Final Object Code:

Select Build

Build ALL to generate the object code. The listing file and symbol table will appear at the build window.

Figure 17

P. 8

(11) Download program:

Select Remote Connect from Debug, and then select Download from Debug to download the program. Different windows will appear at screen as shown below:

Figure 18

(12) Execute the program:

Option 1: Execute the program by clicking the green traffic light button and stop the program by clicking the Red Stop Button.

Figure 19

Option 2: Execute the program step by step by clicking button. For each step, a yellow arrow pointer will point to the next instruction being executed and the register window shows the updated content of the registers.

P. 9

Figure 20

Before exiting from the IDE, you are required to select Disconnect from the Debug.

P. 10

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF