Command |
FPROG
FEND |
|
|
Description |
FPROG and FEND are used to program subsequent commands into internal
flash memory. Use the RESET(NAND) command after FPROG if the existing
files are to be replaced, otherwise the files are appended to NAND. Subsequent LIB
commands then load images and files from NAND. When the module starts
up, it checks for the correct TUxxxA.mnu start file in NAND, loads it into
memory but skips the code between FPROG and FEND
Each file is copied into a buffer before writing to NAND. |
|
|
Syntax/Parameters |
FPROG;
....
FEND; |
|
|
Options |
A file called FPROG.MNU can be created by accessing the FILES >> Create
Project Flash File in the iDevTFT development software. This can be
included into the main TUxxxA.mnu file using the INC command as follows:
FPROG;
INC( "SDHC/fprog.mnu" );
FEND; |
|
|
Example |
Example content of TU480A.mnu file on SDHC card
FPROG;
RESET( NAND );
LOAD( NAND, "SDHC/TU480A.mnu" ); //copies itself
LOAD( NAND, "SDHC/imgfile1.bmp" );
LOAD( NAND, "SDHC/imgfile2.bmp" );
FEND;
LIB( libImg1, "NAND/imgfile1.bmp" );
LIB( libImg2, "NAND/imgfile2.bmp" );
LIB( libImg3, "SDHC/img3.bmp" ); //loaded from SDHC each boot up.
etc |
|
|
Update Information |
Version |
Title |
Date |
Details |
44.00 |
FPROG and FEND - Commands added. |
20 May 11 |
|
Commands added. Code between FPROG; and FEND; is executed when the mnu file originates from a source other than NAND (eg SDHC). When the source is NAND, then all commands, comments and code is ignored between the FPROG; and FEND;. This allows the menu file to copy files from an SDHC card, say, to the NAND.
FPROG; //data between FPROG >> FEND is not accessed when run from NAND LOAD(NAND,"SDHC/imgfile.bmp"); //copy file from SD card to NAND FEND;
LIB(img1,"NAND/imagefile.bmp"); //load from NAND to RAM library.
The iDevTFT software can create a Project Flash File and this can be included using INC("SDHC/fprog.mnu"); in the TUxxA.mnu file. For development purposes, images and fonts can be loaded into NAND then the MNU files sent by serial port to RAM.
|
|
|
|