OTA upgrade stuck at Restarting.. on the terminal window

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

cross mob
Anonymous
Not applicable

Hi,

I am trying to implement #ota_upgrade on my #bcm943362wcd8 board, but not able to do so even after following all the steps in the documents.

I have also followed all the forums and tried changing Modified sector size to 0x10000 in "wiced_apps_erase_sections" function in "wiced_apps_common.c" but there was no help from this.

Can some one please me I am stuck here from a couple of days.

0 Likes
1 Solution

Hi Ajay,

You can use your existing IDE and import the 3.3.1 SDK to that. Please refer to this blog post.

How to import a WICED SDK into an existing WICED Eclipse IDE (2)

You should have no problems importing and using the 3.3.1 SDK with the existing IDE. Let me know if you run into any problems.

Thanks,

Jaeyoung

View solution in original post

0 Likes
14 Replies
Anonymous
Not applicable

Hello,

I was able to reproduce a similar issue on the BCM943362WCD4 board. All I did was clean the board, download another app on the board (not the ota app) and then downloaded the ota app back again. We do not recommend changing the modified sector size as there is not be that much stack space available.

Thanks,

Arsh Buch

Anonymous
Not applicable

Dear Arsh Buch,

Thank you for your reply.

Unfortunately I have already tried this. The result was the same.

I have two boards and both are acting same ways.

For downloading the program i am writing

snip.ota_fr-BCM943362WCD8 download download_apps run

Also I have tried again with the original program without any sector change as you suggested. But its still not working.

Can you please help with this?

Vinit.

0 Likes
Anonymous
Not applicable

Hi Vinit,

In theory, you don't need to change any thing for BCM943362WCD8 to work. It should work out of the box. just to understand, do you get all the writing messages correctly and and it stops at restarting?

Did you change any thing in the code?

can you post your logs?

Regards,

Bassem

0 Likes
Anonymous
Not applicable

Hello Bassem,

Thank you for replying.

I have not changed anything in the code.

Here is the log I am on the terminal:

Writing chunk 281 of size 1024 from offset 286720  Writing chunk 282 of size 1024 from offset 287744  Writing chunk 283 of size 1024 from offset 288768  Writing chunk 284 of size 1024 from offset 289792  Writing chunk 285 of size 1024 from offset 290816  Writing chunk 286 of size 1024 from offset 291840  Writing chunk 287 of size 1024 from offset 292864  Writing chunk 288 of size 1024 from offset 293888  Writing chunk 289 of size 1024 from offset 294912  Writing chunk 290 of size 1024 from offset 295936  Writing chunk 291 of size 1024 from offset 296960  Writing chunk 292 of size 1024 from offset 297984  Writing chunk 293 of size 1024 from offset 299008  Writing chunk 294 of size 1024 from offset 300032  Writing chunk 295 of size 1024 from offset 301056  Writing chunk 296 of size 1024 from offset 302080  Writing chunk 297 of size 1024 from offset 303104  Writing chunk 298 of size 1024 from offset 304128  Writing chunk 299 of size 1024 from offset 305152  Writing chunk 300 of size 1024 from offset 306176  Writing chunk 301 of size 1024 from offset 307200  Writing chunk 302 of size 1024 from offset 308224  Writing chunk 303 of size 1024 from offset 309248  Writing chunk 304 of size 1024 from offset 310272  Writing chunk 305 of size 1024 from offset 311296  Writing chunk 306 of size 1024 from offset 312320  Writing chunk 307 of size 1024 from offset 313344  Writing chunk 308 of size 1024 from offset 314368  Writing chunk 309 of size 1024 from offset 315392  Writing chunk 310 of size 1024 from offset 316416  Writing chunk 311 of size 1024 from offset 317440  Writing chunk 312 of size 1024 from offset 318464  Writing chunk 313 of size 1024 from offset 319488  Writing chunk 314 of size 1024 from offset 320512  Writing chunk 315 of size 1024 from offset 321536  Writing chunk 316 of size 1024 from offset 322560  Writing chunk 317 of size 1024 from offset 323584  Writing chunk 318 of size 1024 from offset 324608  Writing chunk 319 of size 1024 from offset 325632  Writing chunk 320 of size 1024 from offset 326656  Writing chunk 321 of size 1024 from offset 327680  Writing chunk 322 of size 1024 from offset 328704  Writing chunk 323 of size 596 from offset 329728  Uploaded file size = 330324 Restarting..

After this my board is stuck. I waited for some time but nothing appeared on the terminal.

I think ideally it should reboot on its own as instructed in the ota_fr.c file. Even if i press reset its stuck.

I have to remove the usb cable and plug it back again.

Please tell me if I am mistaken in any part of the process.

I really need to get OTA upgrade working.

Thanks in advance.

Regards,

Vinit Katariya.

0 Likes
Anonymous
Not applicable

Hi Vinit,

What version of WICED are you using?  WICED OTA have been working out of the box for some time. I'll however try to run your same version see if I can reproduce your problem.

In the mean time, make sure you have done make clean , before issuing any other command.

Regards,

Bassem

0 Likes
Anonymous
Not applicable

Bassem,

Thanks for looking into this.

Vinit and I have been working together on this. I am using WICED v3.1.2 on MAC, and he has been using the same version on Windows XP (or 7). Both of us have faced the same issue with our boards.

Regards

- Ajay

0 Likes
Anonymous
Not applicable

Hi,

Sorry for the delayed response. I was able to reproduce your problem on WICED 3.1.2. However, when testing on latest version of WICED 3.3.1, I was able to do the update and run the scan application without any changes. I'd recommed to update to the latest version of WICED (i.e WICED 3.3.1)

Regards,

Bassem

Anonymous
Not applicable

Thanks Bassem. Looks like WICED 3.3.1 is not available for Mac yet. .

0 Likes

Hi Ajay,

You can use your existing IDE and import the 3.3.1 SDK to that. Please refer to this blog post.

How to import a WICED SDK into an existing WICED Eclipse IDE (2)

You should have no problems importing and using the 3.3.1 SDK with the existing IDE. Let me know if you run into any problems.

Thanks,

Jaeyoung

0 Likes
Anonymous
Not applicable

Bassem,

I finally got around to doing the OTA_FR test with the latest version of WICED. And it worked!! Thanks for all your help!

- Ajay

0 Likes
Anonymous
Not applicable

Cheers, Please mark as solved.

0 Likes
Anonymous
Not applicable

I guess I spoke too soon. I was able to get the OTA to work, but FR failed. It just got the card into a hung state. Also an unrelated problem - now when I try to build OTA_FR, i see the following.

make: *** [main_app] Segmentation fault: 11.

I don't see this for any other app. Not sure what's going on. Any idea?

- Ajay

0 Likes
Anonymous
Not applicable

I followed the instructions at

WICED OTA Upgrade and Factory Reset (SDK 3.1.2)

and now I am able to build and perform an OTA upgrade. But the FR still fails. Not sure why. Just in case it helps I am using BCM943362WCD8 card.

- Ajay

0 Likes
Anonymous
Not applicable

How do I mark this as resolved? Also the correct answer to this problem was the one provided by Bassem, though Jaeyoung did provide valuable input to install the new SDK. Is there a way to mark multiple answers as 'Correct'? I didn't see any way of fixing the indication for correct answer.

0 Likes