FPROG
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