Application Requirements

In order to implement OTA upgrades, the application images for the server and clients must be designed and built according to certain requirements.

These requirements include the following:

  • Inclusion of the header files zcl_options.h and OTA.h

  • Inclusion of the relevant #defines in the file zcl_options.h, as described in Section 49.13

  • Specific application initialization requirements, as outlined in Section 49.6

  • Use of the Non-Volatile Memory Manager (NVM) to preserve context data, as outlined in Section 49.8.5

  • Organization of Flash memory, as outlined in Section 49.8.6

  • It is necessary to remove references to the Certicom security certificate, as indicated in Section 49.13

Note: Some of above requirements differ between the server image, the first client image and client upgrade images. These differences are pointed out, where relevant, in Section 49.6 and Section 49.8.

In addition, you should increase the CPU stack size from the default value. With OTA Upgrade, the recommended stack size is 6000 bytes. This can be done by including the following line in your application makefile:

__stack_size = 6000;

Parent topic:OTA Upgrade cluster