Copy Link
Add to Bookmark
Report
making ADS project file for the GP32
- ADS (ARM Developer Suite) evaluation version You can request ADS 45-day evaluation at ARM homepage. It will delivered to you in 3 weeks.
- making an empty project file
- run ADS and select menu "File/New...".
- select "ARM Executable Image" and type project name, select the location where the project file will be generated, and press "OK" button. if you check the option "Create Folder" in folder selection dialog box, it will make the folder with same name as project and generate project file in it. (We, Gamepark, recommend you a folder structure. (for more details, refer to "GP32 free application project structure".)
- adding file(s)
- add necessary files by selecting menu "Project/Add Files...". mandatory files are as follow.
- debug/release target common files
- work/lib/gp/gplib/src/target/gpstart.c
- work/lib/gp/gplib/src/target/user_init.s
- work/lib/gp/gplib/
- debug target specific files
- work/lib/gp/gplib/gplibads/gp_entry_Data/Debug/ObjectCode/init.o
- work/lib/gp/gplib/gplibads/debug/gpos.a
- work/lib/gp/gplib/gplibads/debug/gpgraphic.a
- work/lib/gp/gplib/gplibads/debug/gpfont.a
- work/lib/gp/gplib/gplibads/debug/gpstdlib.a
- work/lib/gp/gplib/gplibads/debug/gpsound.a
- work/lib/gp/gplib/gplibads/debug/gpmem.a
- work/lib/gp/gplib/gplibads/debug/gpfont8.a(optional)
- work/lib/gp/gplib/gplibads/debug/gpfont16.a(optional)
- work/lib/gp/gplib/gplibads/debug/gpgraphic8.a(optional)
- work/lib/gp/gplib/gplibads/debug/gpgraphic16.a(optional)
- work/lib/gp/gplib/gplibads/debug/gpnet.a(optional)
- work/lib/gp/gplib/gplibads/debug/gpstdio.a(optional)
- release target specific files
- work/lib/gp/gplib/gplibads/gp_entry_Data/Release/ObjectCode/init.o
- work/lib/gp/gplib/gplibads/release/gpos.a
- work/lib/gp/gplib/gplibads/release/gpgraphic.a
- work/lib/gp/gplib/gplibads/release/gpfont.a
- work/lib/gp/gplib/gplibads/release/gpstdlib.a
- work/lib/gp/gplib/gplibads/release/gpsound.a
- work/lib/gp/gplib/gplibads/release/gpmem.a
- work/lib/gp/gplib/gplibads/release/gpfont8.a(optional)
- work/lib/gp/gplib/gplibads/release/gpfont16.a(optional)
- work/lib/gp/gplib/gplibads/release/gpgraphic8.a(optional)
- work/lib/gp/gplib/gplibads/release/gpgraphic16.a(optional)
- work/lib/gp/gplib/gplibads/release/gpnet.a(optional)
- work/lib/gp/gplib/gplibads/release/gpstdio.a(optional)
- configuring project
- debug target configuration
- set default target as Debug. you can do this by selecting menu "Project->Set Default Target" or selecting one from the combobox in "Files" tab.
- select menu "Edit/Debug Settings..."
- Target/Target Setting
- change Output Directory where output file will be produced if necessary. this is not required. the name of output file will be "project_name.axf".
- Target/Access Paths
- add "work/lib/gp/gplib/include" by clicking "Add" button. if more include paths are needed, add them in the same way.
- Language Settings/ARM Assembler
- select "ARM9TDMI" as "Target/Architecture or Processor".
- add macro "GP_DBG SETL {TRUE}" into "Predefines/List of Predefines" as follows. type "GP_DBG" in Variable, select "SETL" as Directive, select "True" as Numeric Value, and click "Add" button.
- Language Settings/ARM C Compiler
- select "ARM9TDMI" as "Target and Source/Architecture or Processor".
- Language Settings/ARM C++ Compiler
- select "ARM9TDMI" as "Target and Source/Architecture or Processor"
- Linker/ARM Linker
- set RO Base in "Output/Simple image" to "0xc000000". set RW Base as proper value for your application. the heap size will increase if this value is set close to RO Base value.
- type "init.o" in "Layout/Object/Symbol" and "init" in Section.
- now, press "Save" button if all necessary configurations are set.
- release target configuration
- set Release as default target Release. you can do this by selecting menu "Project->Set Default Target" or select one from combobox in "Files" tab.
- select menu "Edit/Release Settings...".
- Target/Target Setting
- select "ARM fromELF" as Post-linker
- set Output Directory to the location where the output file will be produced. this is not required. output file will be "project_name.axf".
- Target/Access Paths
- add "work/lib/gp/gplib/include" by clicking "Add" button. if more include paths are needed, add them in the same way.
- Language Settings/ARM Assembler
- select "ARM9TDMI" as "Target/Architecture or Processor"
- add "GP_DBG SETL {FALSE}" into "Predefines/List of Predefines" as follows. type "GP_DBG" in Variable, select "SETL" as Directive, select "False" as Numeric Value, and press "Add" button.
- Language Settings/ARM C Compiler
- select "ARM9TDMI" as "Target and Source/Architecture or Processor".
- Language Settings/ARM C++ Compiler
- select "ARM9TDMI" as "Target and Source/Architecture or Processor".
- Linker/ARM Linker
- set RO Base in "Output/Simple image" to "0xc000000". set RW Base as proper value for your application. the heap size will increase if this value is set close to RO Base value.
- type "init.o" in "Layout/Object/Symbol" and "init" in Section.
- Linker/ARM fromELF
- set "Output format" to "Plain Binary".
- set "Output file name". if not set, the output will be produced with the name "project_name.bin" in the same folder where the output file is produced.
- now, press "Save" button if all necessary configurations are set.
- Building
- time to build. press "F7" or select menu "Project/Make" to begin building. add necessary library files if needed. (for example, you may have to add gpgraphic16.a if you use 16-bit graphics APIs.)