CYW943907 OTA/OTA2 test

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JuMo_1762556
Level 3
Level 3
First like received First like given

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-up...

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-3...

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.

0 Likes
1 Solution
PriyaM_16
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

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

View solution in original post

9 Replies
PriyaM_16
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

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

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.

0 Likes

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

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.

0 Likes

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

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.

0 Likes

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

0 Likes

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.

0 Likes

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