Toshiba TOPAS900 Network Card User Manual


 
Users Manual TOPAS900 Flash V2.1
HWU Elektronik Oberhausen Page 20
Compile and Link
Preparing programs for execution, i.e. compile and link, can be done by a single DOS
command line invoking a so called driver: for C-programs “cc900” driver and for
Assembler programs “mac900” driver.
For further information on drivers please refer to the “language tool operation manual”.
Please notice that the drivers additionally invoke the linker “tulink”. For linking a linkage
command file is needed with the extension is needed. The usual filename extension is
.LNK” or “.LCF”. This file defines the desired mapping of variables and of program
code to memory addresses. Examples of linkage command files to fix user programs into
TOPAS900 memory please refer to the examples in “\SAMPLE\TEST900“ directory. In
all subdirectories are files named ”MAKE.BAT“. Executing these files will compile and
link the sample projects. Detailed information can be found in the respective manual. The
user always should add the assembler file “STARTUP.ASM” to the link command
which embeds user programs into some initializing code and should use the linkage
command file “SAMPLE.LNK” which sets the correct target address space. The
STARTUP.ASM program also includes the “IO900.H” file in which all implemented
input/output addresses are defined by variables and can be applied by user programs.
Program preparation for debugging
To prepare programs for source level debugging the driver has to be invoked with “-g“
switch.
Program format conversion
Executable programs (extension “.ABS”) can be converted to Intel-Hex or Motorola-S
format by invoking the format converter “tuconv”.
Converting for Internal and External Memory
To program software to internal or external flash memory Intel-hex files must be created
by using the “TUCONV.EXE” tool. The execution address range is the same
(0xFC000..0xFFFF00) but the programming address space is different. In programming
mode both, the internal and the external flash memory can be programmed, but in
different address ranges.
Sample command lines:
Converting for external memory:
-l -Fh20 -ra 0xf80000,0x80000,0x80000,,