Reset |
Description |
Clear the contents of the
RunTime Counter, Delete List, Library Files or do a System reset. System - Reset the System so that it re-boots as at power ON. Note: When a RESET(SYSTEM); or hardware reset occurs, the boot software in the module looks to see if a valid start up file type TUxxxA.mnu is present on the SD card, if not, it looks in the internal NAND flash memory. If no TUxxx.mnu file is found, the module initializes the interface RS2 in command mode as 115200,8,1,N and AS1 as 500000,8,N,1,H. Runtime - Clears the runtime counter. EEPROM - Clears the EEPROM and reload defined variables. DELETED - Clears the deleted entity list. NAND - Clears the NAND flash memory, also clears both MNU and LIB areas of NAND. NANDMNU - Clears just the MNU files in NAND flash. NANDLIB -Clears the BMP, FNT, WAV files in NAND flash (LIB area of NAND). LIBRARY - Clears the library. Allows new program to load. Interface setup unchanged. SDHC - Reinitialises SD card handler (useful after SD card removal/reinsertion). FACTORY -Erases all user data from NAND and the whole EEPROM. Default values for touch screen are then used. Touch panel calibration will need to be run. START - Restarts system without hardware reset and keeping USB/RS232 alive. A TUxxxA.MNU file will expected on the SD Card or in NAND. Note that RESET( LIBRARY ) does the same but doesn't look for a TUxxxA. MNU file as the module expects commands to be sent serially to it in this case. USB - Added RESET(USB) which causes USB interface to disconnect, reinitialise and reconnect. Setting rxi=n and txi=n now disconnects USB interface, then interface is reinitialised when either rxi or txi is enabled. Interrupt - Clears the receive buffer for the interface. RS2RXC, RS4RXC,I2CRXC... eg RESET(SPIRXC); RESET(LIBRARY) and RESET(START); Improvements - v49.46 * This function was intended for use as a command from iDevTFT. However, some customers wish to use the functionality from within their own project code. Therefore, functionality has been modified to process the reset only once the parser has returned to the top level of the scheduler. |
Syntax/Parameters |
RESET(Name);
Name of item to Reset |
Example |
RESET(SYSTEM); RESET(RUNTIME); RESET(EEPROM); RESET(DELETED); RESET(NAND); RESET(NANDMNU); RESET(NANDLIB); RESET(LIBRARY); RESET(SDHC); RESET(FACTORY); RESET(START); RESET(USB); |