Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
hiko_4316286
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

I have a question about the behavior of Factory Reset on OTA1.

Currently, I have the following settings

Set "RESOURCES_LOCATION ? = RESOURCES_IN_DIRECT_RESOURCES".

Create a target with "make target" as "download".

The questions are as follows

Is the "Factory Reset" data written to external Flash at the time of build with the above settings?

Is the "DCT Image" data written to external Flash at the time of build with the above settings?

Can the "Factory Reset" ,"DCT Image"data of external Flash be read when OTA1 fails?

If you can't do the above, do you need other settings?

Here's some additional information

*****

We have confirmed that the following settings will work

Set "RESOURCES_LOCATION ? = RESOURCES_IN_WICEDFS".

Make target as "download download_apps".

*****

*****

With the following settings, the following log is printed and the write will fail

Set "RESOURCES_LOCATION ? = RESOURCES_IN_DIRECT_RESOURCES".

Make target as "download download_apps".

log excerpt

 ----- ...

 Downloading Bootloader ...

 Building apps lookup table

 No changes detected

 Downloading DCT ...

 Download complete

 Downloading Application ...

 Downloading FR_APP build/AAA-Combo_board-ThreadX-NetX_Duo/. /... /apps/AAA/FR_APP.stripped.elf at sector 1 address 4096...

 tools/makefiles/wiced_apps.mk:278: recipe for target 'FR_APP_DOWNLOAD' failed

 make.exe[1]: *** [FR_APP_DOWNLOAD] Error 1

 make.exe[1]: *** Waiting for unfinished jobs....

 No changes detected

 make: *** [main_app] Error 2

 Makefile:351: recipe for target 'main_app' failed

 ----- ...

->Consideration: FR_APP seems to have failed because Application and FR_APP download are running at the same time.

*****

0 Likes
1 Solution
KotnaniK_71
Employee
Employee
50 likes received 25 likes received 10 likes received

Hi,

Can you please let me know the platform which you are using?

If you set "RESOURCES_LOCATION ? = RESOURCES_IN_DIRECT_RESOURCES", you are forcing the resources to use internal flash file system.

The download_apps mechanism may require and uses external flash at the time of build and the external flash file system holds the Factory reset application, DCT_image and all other information except bootloader and current application area.

Thanks.

View solution in original post

0 Likes
1 Reply
KotnaniK_71
Employee
Employee
50 likes received 25 likes received 10 likes received

Hi,

Can you please let me know the platform which you are using?

If you set "RESOURCES_LOCATION ? = RESOURCES_IN_DIRECT_RESOURCES", you are forcing the resources to use internal flash file system.

The download_apps mechanism may require and uses external flash at the time of build and the external flash file system holds the Factory reset application, DCT_image and all other information except bootloader and current application area.

Thanks.

0 Likes