.Copyfirmwarelzo Method

Top  Previous  Next

Function:

Assumes that there is LZO-compressed firmware/application file of length bytes stored at logical sector 0 of the flash memory. Decompresses the file into the firmware/application area (starting from physical sector 0), then reboots the device to make it run the new firmware/application.

Syntax:

fd.copyfirmware(byref length as dword)

Returns:

---

See Also:

Upgrading the Firmware/Application, Direct Sector Access

fd.buffernum, fd.getbuffer, fd.setbuffer, fd.getsector, fd.setsector, fd.checksum, fd.copyfirmware

 


Part

Description

length

Compressed data length in bytes.

Details

Certain platforms do not support this method. Refer to your platform documentation for details.

The decompression algorithm accepts files compressed with lzo1x-999.exe utility.

 

note_warning-wt

BE VERY CAREFUL! Using the fd.copyfirmwarelzo on incorrect data will "incapacitate" your device and further remote upgrades will become impossible. You will need to physically go to your device and upload correct firmware and/or application, possibly through its serial port. Scary, huh?