.copyfirmwarefromfile Method (Selected Platforms Only)
Function: |
Copies the data from an opened and currently selected file of the flash disk (selection is made through fd.filenum) into the TiOS/application area of the flash memory, then reboots the device to make it run new TiOS/application. |
Syntax: |
fd.copyfirmwarefromfile() |
Returns: |
--- |
See Also: |
Self-Upgrading the Firmware/Application, File-Based Access, fd.copyfirmware, fd.copyfirmwarelzo, fd.copyfirmwarefromfile, fd.copyfirmwarefromfilelzo |
Details
There is no need for a data length argument. The method will simply attempt to copy the entire contents of the file. The file is expected to start with TiOS firmware, optionally followed by a compiled Tibbo BASIC/C application binary. If the file is smaller than the size of TiOS firmware for this platform, the execution will be aborted.
Certain platforms do not support this method. Refer to your platform documentation for details.
On 32-bit platforms, this method will only work if your device has Monitor V2.00 or higher. Contact Tibbo Support for a free Monitor upgrader application.
BE VERY CAREFUL! Using this method on incorrect data will "incapacitate" your device and further remote upgrades will become impossible. You will need to visit your device's site and upload correct firmware and/or application, possibly through its serial port. Scary, huh?