Tutorial - Using Microcross Visual-X Tools and GNU-X Windows for ARM-ELF Target

Contact: SweePoh, Quek (Kevin)
Testech Electronics Pte Ltd. Blk 1014, #02-194, Geylang East Ave 3, Singapore 389729.
Tel: (+65)-67492162  Fax: (+65)-67494246.  Email: sales@testech-elect.com   Web: www.testech-elect.com


Requirements:

1. Microcross Visual-X, GNU-X Windows for ARM-ELF.

2. ARM Based Target Board.

Procedures:

1. Click on "Project -> New". Select GNU arm-elf C/C++ Wizard and create a new workspace. Select the correct target toolchain (in this case, ARM-ELF) and click OK.

create_new_project.jpg (49011 bytes)

2. The following dialog appears.. Select the C executable project.

select_c_project.jpg (15480 bytes)

3. The application type dialog appears. Select Än empty project".

select_empty_project.jpg (14196 bytes)

4. A choice of  "Build Systems" dialog appear. Slect the "Build with an auto-generated, autom-maintained makefile".

select_automake.jpg (19276 bytes)

5. Select "Finish" and the New Project Information will show a summary of the project created.

new_project_information.jpg (21698 bytes)

6. Click OK, and the Project.. Under the File tab, navigate to the <drive>\Cygwin\home\test directory and select the "pascal.c"source file. Click on Add button to add this file to the project files. Click OK to finish setting up the project.

project_add_file.jpg (42970 bytes)

7.  Double click on the source file "pascial.c" to open teh source file. The developer can edit or view the source content. Beliw is a screenshot of the Visual X-Tools IDE.

project_window_ide.jpg (93593 bytes)

8. Click on Build -> Compile from the mini or the mini toolbar icon

mini_toolbar.jpg (15190 bytes)

9. The below screen shows the compiled result.

compile_result.jpg (23914 bytes)

10. Click on Build -> build or click on Build Project  icon on the min toolbar. Below shows the make results.

build_result.jpg (35165 bytes)

11. Click on Build -> Debug with GDB from the menu or click on the mini-toolbar bug symbol. Type "target sim"to select simulator, and then type "load" to load the program. Then type "Run"". To exit, type "quit"and the program will returns. This is a short tutorial using command line GDB for simulator target.

gdb_result.jpg (76216 bytes)

12. Click on Build -> Debug iwth Visual GDB. To select a breakpoint, move a mouse over the left edge of the window and click on a line to set the breakpoint. Then select the Left Most icon (like a running person) on the toolbar. When prompt, select "Target -> Simulator"on the drop down select box. After debugging, you can click on File -> exit to ext visual GDB.

Note that GDB support Hardware assisted debug interface such as EPI MAJIC JTAG for ARM/XScale/MIPS, Abatron BDI2000 for ARM/Xscale/MIPS core. In this case, select ARM Remote/Serial or ARM Remote/Ethernet and the JTAG probe must support GDB backend (such as EPI MAJIC or EPI JEENI, Abatron BDI2000 JTAG Interface). Using Hardware JTAG Debug offer you non-intrusive using onchip debug hardware of the ARM Core (and some core even support hardware trace or onchip HW trace), Hardware Breakpoint, debug code in Flash and debug Kernel as well.

visual_gdb_target_select.jpg (25133 bytes)

visual_gdb_screen.jpg (57304 bytes)

13. You can open memory window, watch window, local variable window, current register window. Below is screen shot.

visual_gdb_multiple_windows.jpg (195279 bytes)

14. Click on Build -> GNU X-Tools options. Below shows the dialog and the compiler setting. Turn on the verbose output.

gnu_x_compile_option.jpg (38029 bytes)

15. On the "Misc" tab, expand the "machine" folder. You can set the various arm-elf architecture code generation specific options here. See below screen.

gnu_x_misc_machine_option.jpg (93834 bytes)

16. Click on the "Code Generation" tab. You can set optimisation, debug symbols option.

gnu_x_code_generation_option.jpg (32810 bytes)

17. Click on "Linker" tab. You can set linker option here.

gnu_x_linker_option.jpg (37092 bytes)

 

18. Click on the "Run/Debug" tab. Select ARM-ELF-GDB for the debugging.

gnu_x_run_debug_option.jpg (25109 bytes)

This ends our short tour of the Visual-X Tools and GNU-X Tools from Microcross for embedded development.


  Back to Microcross Main Page    |    Back to Testech Home Page    |    Compiler    |     RTOS    |    Emulator/Debugging