OTA upgrade stuck at Restarting.. on the terminal window (Con't)

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

cross mob
Anonymous
Not applicable

Hi vik86​ and peter_fenn

Per this thread: OTA upgrade stuck at Restarting.. on the terminal window

I am working on avnet iot kit and i also facing the same issue of getting stuck at the restart point. Now if I do a hard reboot the device doesn't show any logs at all. I need to flash a new application if I need to get it work again. Can anyone help on this one

Thanks in advance for your help

0 Likes
1 Solution
8 Replies
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

could you share your make build target you are using to download the application ?

0 Likes
Anonymous
Not applicable

I am using the command snip.ota_fr-BCM94343W_AVN download_apps run

I am attaching the logs I am getting also with this

Starting WICED v3.5.2

Platform STMF405 initialised

Started ThreadX v5.6

Initialising NetX_Duo v5.7_sp2

Creating Packet pools

WWD SDIO interface initialised

WLAN MAC Address : 6C:0B:84:D1:32:43

WLAN Firmware    : wl0: Nov 25 2015 12:57:14 version 7.45.45.1 (r602358) FWID 01-1920c040

Mutex Init Done

Time for an upgrade. OTA upgrade starting ...

IPv4 network ready IP: 192.168.10.1

Setting IPv6 link-local address

IPv6 network ready IP: FE80:0000:0000:0000:6E0B:84FF:FED1:3243

**************************************

Your SSID : Molekule Device

Your PASSPHRASE : molekule123

Your web bowzer : 192.168.10.1

**************************************

Going to create the Device_Manager thread

Writing chunk 1 of size 1024 from offset 0

Writing chunk 2 of size 1024 from offset 1024

Writing chunk 3 of size 1024 from offset 2048

Writing chunk 4 of size 1024 from offset 3072

Writing chunk 5 of size 1024 from offset 4096

Writing chunk 6 of size 1024 from offset 5120

Writing chunk 7 of size 1024 from offset 6144

Writing chunk 8 of size 1024 from offset 7168

Writing chunk 9 of size 1024 from offset 8192

Writing chunk 10 of size 1024 from offset 9216

Writing chunk 11 of size 1024 from offset 10240

Writing chunk 12 of size 1024 from offset 11264

Writing chunk 13 of size 1024 from offset 12288

Writing chunk 14 of size 1024 from offset 13312

Writing chunk 15 of size 1024 from offset 14336

Writing chunk 16 of size 1024 from offset 15360

Writing chunk 17 of size 1024 from offset 16384

Writing chunk 18 of size 1024 from offset 17408

Writing chunk 19 of size 1024 from offset 18432

Writing chunk 20 of size 1024 from offset 19456

Writing chunk 21 of size 1024 from offset 20480

Writing chunk 22 of size 1024 from offset 21504

Writing chunk 23 of size 1024 from offset 22528

Writing chunk 24 of size 1024 from offset 23552

Writing chunk 25 of size 1024 from offset 24576

Writing chunk 26 of size 1024 from offset 25600

Writing chunk 27 of size 1024 from offset 26624

Writing chunk 28 of size 1024 from offset 27648

Writing chunk 29 of size 1024 from offset 28672

Writing chunk 30 of size 1024 from offset 29696

Writing chunk 31 of size 1024 from offset 30720

Writing chunk 32 of size 1024 from offset 31744

Writing chunk 33 of size 1024 from offset 32768

Writing chunk 34 of size 1024 from offset 33792

Writing chunk 35 of size 1024 from offset 34816

Writing chunk 36 of size 1024 from offset 35840

Writing chunk 37 of size 1024 from offset 36864

Writing chunk 38 of size 1024 from offset 37888

Writing chunk 39 of size 1024 from offset 38912

Writing chunk 40 of size 1024 from offset 39936

Writing chunk 41 of size 1024 from offset 40960

Writing chunk 42 of size 1024 from offset 41984

Writing chunk 43 of size 1024 from offset 43008

Writing chunk 44 of size 1024 from offset 44032

Writing chunk 45 of size 1024 from offset 45056

Writing chunk 46 of size 1024 from offset 46080

Writing chunk 47 of size 1024 from offset 47104

Writing chunk 48 of size 1024 from offset 48128

Writing chunk 49 of size 1024 from offset 49152

Writing chunk 50 of size 1024 from offset 50176

Writing chunk 51 of size 1024 from offset 51200

Writing chunk 52 of size 1024 from offset 52224

Writing chunk 53 of size 1024 from offset 53248

Writing chunk 54 of size 1024 from offset 54272

Writing chunk 55 of size 1024 from offset 55296

Writing chunk 56 of size 1024 from offset 56320

Writing chunk 57 of size 1024 from offset 57344

Writing chunk 58 of size 1024 from offset 58368

Writing chunk 59 of size 1024 from offset 59392

Writing chunk 60 of size 1024 from offset 60416

Writing chunk 61 of size 1024 from offset 61440

Writing chunk 62 of size 1024 from offset 62464

Writing chunk 63 of size 1024 from offset 63488

Writing chunk 64 of size 1024 from offset 64512

Writing chunk 65 of size 1024 from offset 65536

Writing chunk 66 of size 1024 from offset 66560

Writing chunk 67 of size 520 from offset 67584

Uploaded file size = 68104

Restarting..

After this even if you wait for 5-10 minutes also nothing is coming

0 Likes

Which application you download via ota_fr, why the size only 66KB ?

Does the application work if down directly ?

0 Likes
Anonymous
Not applicable

Its just a hello world printf program which when run directly its working. Even I tried a sample Timer program with that one also the same behavior is seen.

Hi Vik,

As you said I tried with the snip.ota_fr-BCM94343W_AVN download download_apps run but still the same behavior is seen

0 Likes

snip.ota_fr-BCM94343W_AVN download download_apps run

Can you modify it to the above build string and try. You are missing download. download_apps downloads it to the external serial flash alone.

Anonymous
Not applicable

Also I am working on a prototype board which uses the BCM4343WA1 module and the MCU is STMF405. We have an external flash also. So how can I flash those information about the app_look up table,etc to the external flash which is required for the OTA upgrade I believe.

When I debugged I found that in the wiced_apps_write some information is being taken from the external flash like where to keep the new image on the external flash etc. I am using dfu programmer or STLink utility to flash my image to the board, can I some how add these also as a part of my make target

example build make target will be like

snip.ota_fr-STMF405-debug

which will create your bootloader.bin, DCT.bin and app.bin which I will flash at particular locations

0 Likes
Anonymous
Not applicable

Any updates

0 Likes

Do you had patch your 3.5.2 SDK according Possible 3.5.2 bug in wiced_framework_set_boot() ?

0 Likes