Zigbee Understanding OTA Storage - Jim-tech/IoT-Developer-Boot-Camp GitHub Wiki
Table of Contents
OTA upgrading is an important feature for Zigbee devices. There is a detailed guide about setting up OTA server and client, AN728, but we still need to learn more about the storage settings.
Application upgrading is done by Gecko Bootloader. Gecko Bootloader can only bootload the GBL file format. Therefore, to upgrade the application image, we have to put the new image to the right place in GBL format. The detailed upgrading process is introduced in UG266.
This page will introduce the storage layout in bootloader perspective and application perspective, and also the settings of OTA storage, so that users can understand it better.
Note that the start address is the offset from the begining of the main flash.
Note that the start address is the offset from the beginning of the SPI flash, so it can start from 0.
When the plugin Slot Manager
is used, the exact storage offset is determined by the Gecko Bootloader.
When the plugin Slot Manager
is NOT used, users need to specify the exact offset of the OTA storage. The start offset for OTA storage must match the start offset of the slot setting in Gecko Bootloader.
Besides the OTA storage, there are some other sections stored in the internal flash. When you set the offset of the OTA storage, please make sure the offset of these sections don't overlap each other. This is only applicable for internal storage. If the OTA image is stored in SPI flash, it will be OK.
There are two different flash layouts which is determined by the following setting: