
Embedded system development and labs for ARM (R. Muresan, 2005)
.pdf
Embedded Systems Development and Labs; The English Edition
d) Compiler Target Specific Options Settings
The compiler target specific options setting is shown in Figure 2-42.
Figure 2-42 Compiler Target Specific Options Settings
e) Compiler Code Generation Settings
The code generation setting is shown in Figure 2-43.
61

Embedded Systems Development and Labs; The English Edition
Figure 2-43 Compiler Code Generation Settings
6. Assembler Settings
The assembler settings is shown in Figure 2-44. All the settings in this page will be displayed in the “Assemble Options” window. The users can manually edit the “Assemble Options” but need to follow the GNU rules.
a) Assembler General Settings
The assembler general settings are shown in Figure 2-44.
●Include Directory – header files directory.
●Object files location – the directory of object files.
●Predefinitions – Define the pre-compile macros.
62

Embedded Systems Development and Labs; The English Edition
Figure 2-44 Assembler General Settings
b) Assembler Code Generation Settings
The assembler warning setting is shown in Figure 2-45.
Figure 2-45 Code Generation Settings
63

Embedded Systems Development and Labs; The English Edition
c) Assembler Target Specific Settings
The assembler target specific setting is shown in Figure 2-46.
Figure 2-46 Assembler Target Specific Settings
d) Assembler Warning Options Settings
The assembler warning options setting is shown in Figure 2-42.
64

Embedded Systems Development and Labs; The English Edition
Figure 2-47 Assembler Warning Options Settings
7. Linker Settings
The linker settings are shown in Figure 2-48. All the settings in this page will be displayed in the “Link Options” edit window. The users can manually edit the Link Options but need to follow the GNU rules. a) Linker General Settings
The linker general setting is shown in Figure 2-48.
●Executable file – generate executable file.
●Library – generate library file.
●Linker script file – select this item only when executable output file is selected.
●Output file name – could be elf or lib file.
Figure 2-48 Linker General Settings
b) Linker Image Entry Options Settings
The assembler warning settings are shown in Figure 2-49.
●Select Entry file – select one of the files listed in the List Box as the first parameter file in the linker command. When the Image Entry Point is set, this item can be empty.
●Image entry point – the entry point of executable file.
65

Embedded Systems Development and Labs; The English Edition
Figure 2-49 Linker Image Entry Options Settings
c) Linker Code Generate Option Settings
The code generation option setting is shown in Figure 2-50.
Figure 2-50 Linker Code Generate Option Settings
66

Embedded Systems Development and Labs; The English Edition
d) Linker Include Object and Library Modules Settings
The include object and library settings are shown in Figure 2-51.
Figure 2-51 Linker Include Object and Library Modules Settings
e) Linker Additional Library Search Path Settings
The additional library search path setting is shown in Figure 2-52.
67

Embedded Systems Development and Labs; The English Edition
Figure 2-52 Linker Add Library Search Path Settings
2.4.4 Project Compiling and Linking
After the project is properly configured, the user can compile and link the project shown as shown in Figure 2-53. If there are any errors, double click the text line in the output window; the error line will be located.
Figure 2-53 Project Build Menu and Tools Bar
2.4.5 Load Debugging
The Embest IDE for ARM includes a software emulator. The user can debug software without the hardware. If the users debug software with the hardware, the JTAG emulator needs to be connected. Select DebugÆRemote Connect and then select “Download” from the menu. If “Automatic Download” is selected in the project settings, the online debugging will be launched immediately after the file is downloaded.
1. Break Point Setting and Single Stepping
The Embest IDE can set break points in source program, disassemble program code source/assembly mixed program.
There are following ways of setting break points:
●Use “Insert/Remove Break Point” button.
●Use F9.
●Use “Hand” pointer.
●Use DebugÆToggle Breakpoint menu item.
A valid break point sample is shown in Figure 2-54.
68

Embedded Systems Development and Labs; The English Edition
Figure 2-54 A Valid Break Point
If a break point is set at a non-executable line, the break point is not valid. The non-valid break point is shown in Figure 2-55.
Figure 2-55 An Invalid Break Point
When the program is executed, it will stop at the first break point as shown in Figure 2-56.
Figure 2-56 Program Stops at Break Point
The user can select DebugÆBreakpoints… item, and a dialog box will list all the break points as shown in Figure 2-57.
69

Embedded Systems Development and Labs; The English Edition
Figure 2-57 Break Point List
The user can click the “Modify” button to modify break point information as shown in Figure 2-58.
Figure 2-58 Break Point Information Modification
In this dialog, user can click the “Advanced” button to add condition information as shown in Figure 2-58.
70