12
"C" Programming Guide For Optimus S/R
2.3.4 Format Conversion
The absolute object file created by
TULINK
is in TOSHIBA's own format. Before being
downloaded to the target machine, it must be converted to the Motorola S format by using
the "
TUCONV
" utility.
TUCONV -Fs32 -o FILENAME.shx FILENAME.abs
The file extension .SHX is a must for the code downloader.
The batch file "
Z.BAT
" which can be found under the USER directory has been created to
simplify the linking and format conversion process. Simply run the batch file:
Z
The target executable file (with SHX extension) will then be generated if no error is found.
2.3.5 Download Program to Flash Memory
Now that the Motorola S format object file
FILENAME.shx
is created successfully, it can be
downloaded to the flash memory for testing. Run the DOWNLOAD.exe utility (or
IRLOAD.exe for IR interface) and configure the following parameters properly.
File Name:
Specify the absolute object file.
COM Port:
Select the appropriate COM port for transmission.
Baud Rate:
Supported baud rates are 115200, 57600, 38400, 19200, and 9600.
Parity:
None
Data Bits:
8
Flow Control:
None
The selected baud rate, parity, data bits, etc. must match the COM port settings of the target
machine.
2.4 C Compiler
This C compiler is for TOSHIBA TLCS-900 family 16-bit MCUs, and it is mostly ANSI
compatible. Some specific characteristics are presented in this section.
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...