User manual

OBSEND ST Assembler-Linker
44/89 Doc ID 11392 Rev 4
6 OBSEND
6.1 What OBSEND does for you
After your program has been assembled and linked to form a .COD file it must be sent to the
place where it will be executed. Right now, your code is just stored as a file on a disk where
the target system cannot get at it.
OBSEND is a general purpose utility for .COD files in various ways using various formats.
6.2 Invoking OBSEND
OBSEND follows the same standard formats as the rest of the assembler / linker; arguments
can be given from the command line, keyboard or response file. The general syntax is:
OBSEND <file>,<destination>[,<args>],<format>
where <file> is the name of the .COD file to be formatted (default extension .COD). If the
filename is not given on the command line, you are prompted at the keyboard with:
OBSEND
STMicroelectronics - Obsend - rel. .2.00
File to Send: test
Destination Type (<f>ile,<v>ideo): f
Final Object code Filename [test.fin]: test.s19
Object Format <ENTER>=Straight Binary, ...,
ST REC <2>, ST REC <4>: s
6.2.1 Destination type
<destination> can be f (file) or v (video). Only a single character is required.
6.2.2 Destination arguments
When the destination type is f (file) the argument <filename> tells OBSEND where to
send the code. The default suffix .FIN is assumed if none is given. For example:
OBSEND test,f,image.s19,s
The command generates the file image.s19 containing the code from test.cod, in S-
record s format.
When the destination code is "v" (video), this field is void.
6.2.3 Format definitions
<format> specifies the output format. Output format options are listed in Table 16.
Table 16. Output formats
<format>
Output format
<none> straight binary, that is, a bit-for-bit image
i Intel hex