Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
1.I do not kown what it is mean a rough relation.Please tell me that cgs file first byte will write to EEPROM first type and the last byte will write to sizeof(cgs file) Byte in EEPROM is right or not?
2.How the WICED-Smart-SDK-1.1.0\Apps\RAM\ota_firmware_upgrade work? The upgrade opreate will overwrite the original file in EEROM?
No, it will not. The EEPROM (or SF) is split into (about) equal halves, one of which is 'current' and the other is the 'upgrade' half. When upgrading, all new app code goes into the upgrade half. Once complete, the upgrade half is read back and verified. If this is successful, the upgrade half is marked as good and read back to ensure that it was marked correctly. If this is successful too, then the current half is marked as invalid and then the device will reboot. When it reboots, what was current before will now be invalid and so marked as upgrade half and what was the upgrade half before will be marked as the current half and the app will be loaded from the new current half.