
RLCD2378 User’s Manual Rev 1.1 14/ 19 September 2007
Example:
extern BMP_type *LCDfileptr;
const BMP_type *stonehenge;
const char image1[] = {"stonehenge"};
Char error;
.
.
.
error = FlashFind(image1); // if error = 0, file not found
stonehenge = LCDfileptr; // pick up the pointer
6.4. FDT
FDT is a Windows based application that is used to program the flash on the RLCD2378 kit via a COM
port on your PC. Custom kernels were developed for programming the external flash on the kit. To add
this capability to an application, these kernels will need to be linked into the user’s project before
compiling.
6.4.1. Using FDT to Download Code
FDT works with files in the Motorola (S-record) format. The sample project code included with this kit
generate S-records by default (with the .mot extension).
1. Launch FDT. (All) Programs > Renesas > Flash Development Toolkit 3.07 basic..
2. Click on <options> <new settings> to enter the configuration wizard.
3. Click on the pull down menu for “Select Device” and select the device name H8S/2378F
and click <next>.
4. Select the COM port the RLCD2378 is connected to, click <next>.
5. Select 16MHz for CPU clock and multiplier should be set to 1, click <next>.
6. Uncheck the “Use Default” and select 38400 in the pull down menu, click <next>, then <finish>.
7. Make sure “User / Data Area” is selected (and User Boot Area is not selected) and then
click on the icon to the left
and browse for the file you wish to download.
Typically the .mot will be in the “debug” or the “release” sub-folder of the project folder (for all the
sample code, the .mot file will be in the “debug” sub-folder).
8. With the RLCD board powered (and SW5 MUST be set to “NORMAL”), hold the “Boot/NMI
switch (SW1) and push & release the reset switch, then release SW1. The “Boot” LED should
turn on.
9. Click on the icon “Program Flash” In the output window, you will see a progress bar and a final
message “Image successfully written to device”.
10. Then click the icon “Disconnect”.
11. Disconnect and reconnect power and the program will run. The LCD demos included with this kit
use images stored in external flash and will not run properly if the external flash ROM has been
erased. See below on how to reprogram the external flash.
6.4.2. Using FDT to program the External Flash
Custom kernels were written to program the external flash using FDT. This code is specific to the
Samsung K8P325UQB and the H8S. The source files are included such that they could be modified
for different flash or MCU devices.
Kommentare zu diesen Handbüchern