Toshiba TOPAS900 user manual Compile and Link

Page 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

Image 20
Contents TOPAS900 Flash Preface Contents Figures Definitions and Abbreviations CPUIntroduction What is TOPAS900 Flash?Key Features of TOPAS900 Flash Package Unpacking What is in the box?Let’s start with TOPAS900 Flash Glance at the TOPAS900 Flash Board SUBPrincipe of Connection Breaking off TOPAS900 Flash Board from Flash Carrier BoardPower Supply Hardware DescriptionProgramming and Debugging Board Firmware ProcessorControl Switches Reset and NMI Serial Communication, Connector and Line DriverConnector to Flash Carrier Board Status LEDsTMP95FY64F Microcontroller TMP95FY64 Schematic Block Diagram Kb Flash ROM Toshiba TC58F400 90 nsConnector to Programming and Debugging Board MCU Terminal ConnectorsKb RAM Toshiba TC551001 70 ns JumpersPage Embedded Workbench Software DescriptionIAR Tools Editing Sources Spy Debugger/SimulatorSpy ROM-Monitor IAR Tools LimitationsToshiba Tools Compiler, Assembler, Linker, ConverterCompile and Link \SAMPLE\TEST900 TMPro Debugger TMPro WindowHow to create a new debugging profile *.tdp Page TMPro ROM-Monitor Toshiba Tool Limitations ROM-Monitor Memory Usage F8C961H Toshiba ROM-MonitorF80000H FE0000H Restrictions of ROM-Monitor Usage Resource Type IAR C-Spy ROM-Monitor Toshiba TMPro ROMMCU Internal Memory Map Functional DescriptionOperating Modes Programming in Single Boot Mode Internal Mapping in different ModesNormal Operation Mode Memory MAPMemory Map for using external / internal Flash Jumper Description Jumpers of the Programming-Debugging BoardJumpers of the Flash Carrier Board Programming of Flash MemoryFlash Programmer Window Board Schematics Technical SheetsSchematic Page 1 Schematic Page 2 Schematic Page 3 Schematic Page 4 Component Print Component Print Top & Bottom ViewPCB Routing PCB Routing Top & Bottom ViewApplication Board Application Board∙ TOPAS900 can Electromagnetic Compatibility