
RLCD2378 User’s Manual Rev 1.1 13/ 19 September 2007
a “Command Prompt” window (under Start > Programs > Accessories) and running the program with no
parameters or options, a help menu will be displayed.
6.3.1. Bin_to_Mot Syntax
It is recommended you copy the Bin_to_Mot.exe program to your hard drive. Then open a “Command
Prompt” window (under Start > Programs > Accessories) and running the program.
Usage: Bin_to_mot -[b/c/i/m][aaaaaaaa] [-B][-f] file(s)_in file_out
Example for the purpose of combining bitmaps into a single S-record file:
C:\...\Bin_to_mot –m400000 “image1.bmp” “image2.bmp” “image2.bmp”
srecord1.mot
Where ‘–m’ specifies Motorola (S record) output, “image1.bmp”, “image2.bmp”, “image3.bmp” are the
image files to convert and ‘srecord.mot’ is the output file. The ‘400000’ is an offset in hex. The
external flash ROM address starts at 0x400000. A batch file is included in the “Utilities” folder that
was used to create the image file for the demos included with the kit.
The complete list of options and parameters can be found in Appendix C.
6.3.2. Bin_to_Mot Header file
The following table illustrates the format of the S-record header that is output by the Bin_to_mot
program. Each entry is 32 bytes long. The filename does not include the extension. In general, non-
alpha-numeric characters are allowed in the filename field, but the functions used in the example
projects that looks up the filename and location(findimage.c) do not support them.
0x000000 Filename (max 24 characters, alpha-numeric only) Location (4 bytes) Size (4 bytes)
0x000020
…
0x000040
…
6.3.3. Findimage.c
This file is used in the “Touch Application” example and in the “Renesas Demo”. The function in this
file is called with a pointer to a constant string, ‘filename’ to match with. The header of the multi-
image file (in external flash) is scanned and if there is a match, a pointer is set to the beginning of the
image and returns a ‘1’. The only function to call in this file is FlashFind (). The function assumes the
header is at address 0x400000 (beginning of flash ROM on the RLCD2378), but the source code can
be modified to suit the user.
char FlashFind( char *name); //again, alpha-numeric filenames only
Parameters:
Pointer to the filename (not including extension)
Returns:
1 if file found, and global “LCDfileptr” points to the beginning of the bitmap
0 if not found
Comentarios a estos manuales