ota_fr fail @ grater size of update file than DCT_APP0 size

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

cross mob
Anonymous
Not applicable

Hello All,

We are working on OTA.

We used:

SDK : Wiced SDK 3.7.0-3

App: Snip.OTA_fr

Issue:

1> OTA upgrade fail when ota firmware file size greater than DCT_APP0 size.

Debug:

1> We debug the code, with taking two different ota_firmware file.

     a> File 1: size 451KB

          Result: OTA Upgrade successfully and worked fine

          conclution: ota file1 size less than DCT_APP0 size

          DCT_APP0_Size = 462848

          File_size = 461612

          DCT_APP0_Size > File_size @ Result: Working fine

worked_log_dct_app0_size.png

     b>  File 2: size 548KB

          Result: OTA Upgrade successfully and worked fine

          conclution: ota file2 size less than DCT_APP0 size

          DCT_APP0_Size = 462848

          File_size = 560236

          DCT_APP0_Size < File_size @ Result: Fail

not_worked_.png

     c> Debug Code Detail:

     File Location: WICED-SDK\libraries\daemons\ota_server

     Function: static int process_upgrade_chunk( ota_http_request_message_t* request, wiced_tcp_stream_t* stream, void* arg )

     ota_fr_snap_shot.png

         

-> After Debugging all this ,

we are facing issue regarding file size

We need help to solve such kind of file size issue ,

so we have some of the doubt:

1> how we can ota upgrade with file size more than OTA_APP0_Size ?

2> Can we increase area of OTA_APP0_size ? if yes so How we can ?

Thanks & Regards,

Chintan Patel

2 Replies
DaBa_2244756
Level 5
Level 5
25 likes received 10 likes received 10 likes given

Hi Chintan,

Possible problem in LUT table at start off  serial flash.

When you download new firmware via jtag(open ocd)   it overload your DCT data, which store  address off new data in sflash. So new data try store in old place (and new size off file will be corrupted  ). But it sflash block 4K must be cleared before.

Solution:

You always (its long processes) must do  "download_apps" in make string. It renew store place in sflash.

BR.

Darius

0 Likes
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

chintan wrote:

so we have some of the doubt:

1> how we can ota upgrade with file size more than OTA_APP0_Size ?

2> Can we increase area of OTA_APP0_size ? if yes so How we can ?

Thanks & Regards,

Chintan Patel

FYI: Re: Possible OTA bug?