4 Replies Latest reply on Mar 21, 2019 12:27 AM by PriyaM_16

    OTA2 image header not set correctly

    cohuc_3807591

      SDK being used - 6.0

       

      So I'm trying to use OTA2 on the quicksilver arrow platform (cyw43907 based). I added the platform files to WICED, added the platform as valid for the ota2 bootloader and failsafe, and built the OTA2 example code and it works flawlessly. However when I try to download the ota2 image file (snip.scan, built with make target snip.scan-QuicksilverEval ota2_image) the ota2 code reports that the platform in the header isn't correct. heres the log output:

       

      0273 00:10:45.458 wiced_ota2_image_validate() OTA Image Platform type fail. CYW943907AEVAL1F.B1 != QuicksilverE             val

      0274 00:10:45.467 wiced_ota2_write() wiced_ota2_update_staged_header() OTA image not supported!

      0276 00:10:45.578 OTA header Information: OTA Image Header after Updating OTAImage header:

      0277 00:10:45.585        ota_version: 1

      0278 00:10:45.589     software_major: 0

      0279 00:10:45.592     software_minor: 0

      0280 00:10:45.596           platform: CYW943907AEVAL1F.B1

      0281 00:10:45.601             status: 0 (invalid)

      0282 00:10:45.606     bytes_received: 1215

      0283 00:10:45.609         header_crc: 0x1acf1f42

      0284 00:10:45.614       magic_string: OTAimage

      0285 00:10:45.618          sign_type: 0

      0286 00:10:45.622   secure_signature: TODO

      0287 00:10:45.626         image_size: 937984

      0288 00:10:45.630    component_count: 5

      0289 00:10:45.633  data start offset: 4096

      0290 00:10:45.637 ota2_get_OTA() FAILED 0 < 937984!

      0291 00:10:45.642

      ota2_get_OTA_file() Exiting 4

       

      What do I need to change (not including updating the WICED version) to ensure that the ota2 header is written with the proper platform?