3.5. Using Sourcery CodeBench 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 CodeBench 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.

Warning

Using YAMON with 64-bit multilibs is not fully supported and may have issues. YAMON is usually built using the O32 ABI, which is not forward-compatible with the N64 ABI used in 64-bit multilibs.