cancel
Showing results for 
Search instead for 
Did you mean: 

Can't update wifi module via ota

Maciejowski.Seth
Associate II
Posted on November 09, 2015 at 20:37

Hey folks,

Here's what I've got:

A module with 

140805-3f58d6b-SPWF01S firmware.  

I attempt to fw update to 3.4 over the air and the module downloads everything but doesn't seem to apply the firmware update to the module. Here is the transaction:

at+s.fwupdate=XXX.XXX.XXX.XXX,/SPWF01S-150410-c2e37a3-RELEASE-main.ota

.....................(many other rows of Write len 4096 -> 0xXXXXX).................

 Write len 4096 -> 0x52000

 Write len 4096 -> 0x53000

 Write len 4096 -> 0x54000

 Write len 4096 -> 0x55000

 Write len 4096 -> 0x56000

 Write len 4096 -> 0x57000

 Write len 4096 -> 0x58000

 Write len 4096 -> 0x59000

 Write len 4096 -> 0x5A000

 Write len 4096 -> 0x5B000

 Write len 4096 -> 0x5C000

 Write len 4096 -> 0x5D000

 Write len 4096 -> 0x5E000

 Write len 4096 -> 0x5F000

 Write len 1812 -> 0x60000 (final)

 Wrote 390932 bytes

 Complete!  Update will be applied on next reboot. (at+cfun=1)

 at+cfun=1

+WIND:2:Reset

+WIND:32:WiFi Hardware Started

+WIND:21:WiFi Scanning

+WIND:35:WiFi Scan Complete (0x0)

+WIND:19:WiFi Join:00:30:44:14:B6:F3

+WIND:25:WiFi Association with 'WifiTestJig' successful

+WIND:51:WPA Handshake Complete

+WIND:24:WiFi Up:192.168.210.78

at+s.sts

# Status & Statistics:

#  version = 140805-3f58d6b-SPWF01S 

Any suggestions?
9 REPLIES 9
Posted on November 09, 2015 at 20:55

Hi Seth,

are you using GPIO0?

ciao

jerry

Maciejowski.Seth
Associate II
Posted on November 09, 2015 at 21:08

jerry,

I'm not, but I do have it wired to an IO on an STM32.  What should I do with it?

Thanks,

-Seth

Posted on November 09, 2015 at 21:19

GPIO0 high at startup (after FWUPGRADE and FSUPGRADE) means ''clean the external flash''.

Leave it floating between ''cfun'' and ''+wind:0:poweron''

Maciejowski.Seth
Associate II
Posted on November 09, 2015 at 21:31

Jerry,

So can I leave it floating all of the time, or do I need to pull it high momentarily at some point in the firmware download?

Thanks again,

-Seth

Posted on November 09, 2015 at 22:03

Hi Seth,

leave GPIO0 floating, or PullDown (if connected to external host).

It's important to avoid GPIO0 high @ startup after Upgrade.

ciao

j
Maciejowski.Seth
Associate II
Posted on November 10, 2015 at 15:14

Jerry,

Thanks.  I'll try that.

-Seth

Maciejowski.Seth
Associate II
Posted on November 10, 2015 at 16:09

Jerry,

GPIO0 is floating.  Still no change in behavior.

Any other IOs I need to be aware of that will cause strange behavior?

Thanks,

-Seth

Posted on November 10, 2015 at 16:15

No, only GPIO0 cleans external flash.

Can you try using and evaluation board (so, without an external host at all)?

j

Maciejowski.Seth
Associate II
Posted on November 10, 2015 at 17:32

Jerry,

Thanks for the suggestions.  

So I went back to square one and floated (disconnected) all pins as per the eval board schematic and I can now update the firmware!  So there appears to be another pin that influences the behavior of this process if it is not floating.  (That is, aside from BOOT0, GPIO0, RX, TX, VCC, RESETn and GND).

Thanks,

-Seth