Self Upgrades With Compressed Files

Self Upgrades With Compressed Files

Release Date:23 December 2011
Project files:Open GitHub repository
Minimum TIDE version:2.50.24
Minimum TiOS version:3.30.01
Try it on:EM1000-TEV

About The Application

This demo shows how to use the built-in fd.copyfirmwarelzo method for unzipping a compressed ROM image and flashing your device.

##Why This Is a Big Deal

Most of our devices currently have 1MB of RAM. Once a project grows larger than 500KB, you will not be able to perform a remote upgrade of the project. There will simply not be enough space on the device to host the new version — if your current version takes 600KB, and the new version takes 610KB, you're stuck.

That is, you were stuck, until LZO compression came along. The download above contains three folders that show how this works. Work through them in the following sequence:

##Why We Like LZO

In case you're curious about our choice of algorithm, here are some of the considerations that made us go for LZO: