Evaluation Kit AT697F V3.0 [APPLICATION NOTE]
34
3.6
Run your first application
Once GRmon and BCC/RCC are installed on your platform and your hardware in the default configuration, you are
ready to start development session on the AT697 target.
Following method is split in two parts:
-
A part for RAM application, called “A”
-
A part for ROM application, called “B”
Step 1A: Compiling to RAM.
The BCC/RCC development environment provides a full tool set for compiling and linking your application.
You can compile and link your basic application with the following command:
sparc-elf-gcc -g -O2 application.c -o application
Step 1B: Compiling to ROM.
In addition, you can create the ROM boot strap using
sparc-elf-mkprom application -o rom_application
Step 2: Hardware configuration.
Connect the DSU connector of the Evaluation kit to the computer through a serial cable. In your Operating
System hardware properties, find your Port COM Number (for example COM1).
Use the default configuration switches (table 2-1) to use internal clock without PLL. The processor clock
frequency is now 25 MHz.
Power on the Evaluation Kit.
Step 3: Connection to the Evaluation Kit.
Open a terminal window on your host platform in order to run GRmon (refer to GRmon user manual for details).
-
under WINDOWS: "
grmon -leon2 -uart COM1 -baud 115200
"
-
under LINUX: "
grmon -leon2 -uart /dev/ttyS0 -baud 115200
”
where the "
-uart
" and "
-baud
" flags are to be set according to your communication interface configuration.