Toshiba TOPAS900 user manual Compile and Link

Models: TOPAS900

1 45
Download 45 pages 26.38 Kb
Page 20
Image 20

Users Manual TOPAS900 Flash V2.1

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-programscc900” 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,,

HWU Elektronik Oberhausen

Page 20

Page 20
Image 20
Toshiba TOPAS900 user manual Compile and Link