(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.
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…”
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.
(2) Create a Source 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.
(3) Add a Source File to the Project.
First right-click “Project Source Files”
→ “Add Files to Folder…”
A file selection dialog will appear and select the file add_num.s that has just been created.
Finally, the source file is added to the project and the following screen should appear.
(4) Processor Settings:
→ Settings…. , The project settings dialog will appear. Select the “Processor” page and choose the details as shown in Figure 8., then click OK.
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.
(5) Generate Object Code:
→ Build ALL to generate the object code.
(6) Remote Settings:
→ Settings…. , The project settings dialog will appear.
Select the “Remote” page and choose the details as shown in Figure 9.
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.
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.
(8) Assembler Settings:
For General setting, set Object Files Location as .\debug and other as default.
Select Code Generation from Category, and click the options as shown in Figure 14 and then click OK.
(9) Linker Settings:
Select General from Category, set the details as follows:
Select Image Entry Options from Category, set details as follows:
You may now select Save Workspace from File to save your work.
(10) Generate Final Object Code:
→ Build ALL to generate the object code. The listing file and symbol table will appear at the build window.
(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:
(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.
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.
Before exiting from the IDE, you are required to select Disconnect from the Debug.
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project