pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
196 stars 167 forks source link

Switchable small factory fw #531

Closed Xykon closed 3 years ago

Xykon commented 3 years ago

In this PR it can be configured whether the "Small Factory FW" mode or "Normal Factory FW" mode is enabled. In case of "Small Factory FW" mode the binary on the factory partition is really small and can only be used for doing a future OTA update. In this case the size of the OTA partition is big enough to contain bigger FWs. In case of "Normal Factory FW" mode the size of factory and OTA partitions are the same and both can contain a full normal binary, however because in this case the available space is not enough to contain all the features, some features need to be switched off.

Switching between "Small Factory FW" mode and "Normal Factory FW" mode can happen with build parameter: SMALL_FACTORY_FW_ENABLED. By default it is turned ON, so if this parameter is not specified, then Small Factory FW mode is considered. For building "Normal Factory FW", the SMALL_FACTORY_FW_ENABLED=0 must be used.