9 Replies Latest reply on May 24, 2018 10:44 PM by PriyaM_16

    CYW943907 OTA/OTA2 test

    JuMo_1762556

      I am using WICED-Studio-6.0 on CYW943907AEVAL1F platform.

       

      I can't make both OTA and OTA2 work for CYW43907 now.

      Please give your comments and advise to shoot this problems.

       

      For OTA2, I tried the following procedures;

       

      https://community.cypress.com/community/wiced-wifi/wiced-wifi-forums/blog/2016/08/23/sdk-370-ota2-update-using-bcm943907-b1

       

      I can't succeed step 6. I couldn't make it

      "After download, reboot the target by "update_reboot" to extract the new firmware.

      After extract, reboot the target again to start new firmware running. "

       

      For OTA, I tried the following procedures;

       

      https://community.cypress.com/community/wiced-wifi/wiced-wifi-forums/blog/2015/05/22/wiced-ota-sdk-312

       

      When I tried "Perform factory reset on the WICED evaluation board" but I couldn't succeed.

      Seems to me, software updated was done but can't make factory reset.

        • 1. Re: CYW943907 OTA/OTA2 test
          PriyaM_16

          Hello,

          For ota_fr snip, Kindly include download_apps in your make target.

          E.g. snip.ota_fr-CYW943907AEVAL1F download_apps download run

          The console should show the FR_APP being downloaded in the device as below:

          Downloading FR_APP build/snip.ota_fr-CYW943907AEVAL1F/binary/snip.ota_fr-CYW943907AEVAL1F.stripped.elf at sector 17  address 69632...

           

          If the factort reset part doesn't work, make the following changes in your platform files:

          In platforms/CYW943907AEVAL1F/platform.h

          Replace

          #define PLATFORM_FACTORY_RESET_BUTTON_INDEX  ( PLATFORM_BUTTON_1 )

          with

          #define PLATFORM_FACTORY_RESET_BUTTON_INDEX  ( PLATFORM_BUTTON_2 )

           

          In platforms/CYW943907AEVAL1F/platform_config.h

          Add the following lines:

          #ifndef OTA2_SUPPORT

          #define PLATFORM_HAS_OTA

          #endif

          2 of 2 people found this helpful
          • 2. Re: CYW943907 OTA/OTA2 test
            JuMo_1762556

            Thank you for the answer.

             

            > The console should show the FR_APP being downloaded in the device as below:

            > Downloading FR_APP build/snip.ota_fr-CYW943907AEVAL1F/binary/snip.ota_fr-CYW943907AEVAL1F.stripped.elf at sector 17  address 69632...

             

              I confirmed this message on my console.

             

            > If the factort reset part doesn't work, make the following changes in your platform files:

            > In platforms/CYW943907AEVAL1F/platform.h

            > Replace

            > #define PLATFORM_FACTORY_RESET_BUTTON_INDEX  ( PLATFORM_BUTTON_1 )

            > with

            > #define PLATFORM_FACTORY_RESET_BUTTON_INDEX  ( PLATFORM_BUTTON_2 )

             

              I tried but it doesn't fix the problem.

             

            > In platforms/CYW943907AEVAL1F/platform_config.h

            > Add the following lines:

            > #ifndef OTA2_SUPPORT

            > #define PLATFORM_HAS_OTA

            > #endif

             

              This setting is already included.

             

            I think I can write a new software by OTA but I can't change back to the original software

            by factory reset. I don't see D1 LED flash.

            • 3. Re: CYW943907 OTA/OTA2 test
              PriyaM_16

              May I ask one question just to clarify the procedure?

              Hold the SW1(USER_1) button. While you are holding the button, press and release the RESET button momentarily. Keep the SW1/USER_1 button pressed for further 5 seconds.

              Have you followed the same steps?

              Also kindly try in the recent SDK 6.1

              1 of 1 people found this helpful
              • 4. Re: CYW943907 OTA/OTA2 test
                JuMo_1762556

                Yes, I followed the exact same procedure (steps).

                I tried SDK 6.1. LED D1 flashes but software doesn't come back to the original one.

                • 5. Re: CYW943907 OTA/OTA2 test
                  PriyaM_16

                  After momentarily pressing and releasing the reset button, Keep the SW1 pressed unless the LED stopes flashing.

                  A demo can be seen here: https://youtu.be/m-O9XoDqnwk

                  2 of 2 people found this helpful
                  • 6. Re: CYW943907 OTA/OTA2 test
                    JuMo_1762556

                    Thank for the video.

                    I confirmed that I am doing same procedure as you.

                    In you video, LED D1 and D2 start blinking but my result is only D1 blinking.

                    My board looks different from yours.

                    I am using CYW943907AEVAL1F board.

                    • 7. Re: CYW943907 OTA/OTA2 test
                      MichaelF_56

                      His board is CYW54907 based. This is essentially a CYW43907 with .ac added.

                      • 8. Re: CYW943907 OTA/OTA2 test
                        JuMo_1762556

                        I succeeded to do Factory reset for OTA on SDK6.1.

                        The position of following code is wrong in platform_config.h;

                        #ifndef OTA2_SUPPORT

                        #define PLATFORM_HAS_OTA

                        #endif

                         

                        If I put these lines in front of [#include "platform_config_bsp_default.h"] Factory reset worked.

                        (But still doesn't work on SDK6.0.)

                         

                        Thank you for your support.

                        • 9. Re: CYW943907 OTA/OTA2 test
                          PriyaM_16

                          Yes. That would be the correct location to be able to reset the device.

                          1 of 1 people found this helpful