3.5. Using Sourcery G++ with YAMON

For YAMON targets, CS3 provides basic I/O services via the YAMON console. This section briefly covers how to load and run programs using YAMON.

To prepare an application to run from YAMON, you must first convert the executable file to SREC format. You can do this from the command line on your host system using the objcopy utility provided with Sourcery G++ Lite.

> mips-sde-elf-objcopy -O srec prog prog.srec

Next, use YAMON to load the SREC image file into RAM. For example, to load via TFTP, use a command similar to:

YAMON> load tftp://host/path/prog.srec

Then, start the program from the YAMON prompt:

YAMON> go .

For more detailed information about YAMON usage and features, refer to the YAMON User's Manual.