cancel
Showing results for 
Search instead for 
Did you mean: 

How do you update the firmware on the SPWF01SA?

Aron Phillips
Associate II
Posted on May 26, 2017 at 23:36

I tried a search for this question and I cannot find an answer. How do you update the firmware on the SPWF01SA? I need to know what pins need to be set in which direction. For instance, the

http://www.st.com/content/ccc/resource/technical/document/datasheet/ba/8c/b2/64/02/bc/4e/05/DM00102124.pdf/files/DM00102124.pdf/jcr:content/translations/en.DM00102124.pdf

only mentions the BOOT0 pin needs to be high but then it does not explain the update process other than it can be done via UART or FOTA. The

http://www.st.com/content/ccc/resource/technical/document/user_manual/4e/4d/c3/82/43/f1/4c/24/DM00100306.pdf/files/DM00100306.pdf/jcr:content/translations/en.DM00100306.pdf

 tells you what command to use if you want to update via OTA but is does not detail the process as to where to get the firmware, what pins need to be in which direction, etc. It also mentions about a HW factory reset (GPIO0 enabled). What is the nature of this pin and why is it needed?

I found another link in the ST community (

https://community.st.com/0D50X00009XketSSAR

 ) that talks about having issues and they mention 

FW_update.bat but not where to get it.

I hope there is a simple explanation as to how to update either via UART or FOTA. If there is anything that I have overlooked, please point me in the right direction.

Thank you in advanced.

#spwf01sa
5 REPLIES 5
Posted on May 28, 2017 at 17:52

BOOT0 High causes the STM32 to start in the System Loader, from there you'd typically use the 'Flash Loader Demonstrator' app for USART connectivity or DFU via USB to deliver the firmware. This will depend on the part/connectivity used in the SPWF01SA

See also AN2606

http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdf

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 30, 2017 at 19:29

Thank you Clive for the help. I have one other question that is imperative to this first request, exactly where do I find any official firmware? I have tried to find it but cannot. I see online that others have tried this process with a firmware but none of them mentions where it is to be found.

Sincerely,

Aron

Posted on May 30, 2017 at 19:34

Aron, when I was dealing with that module, the firmware came directly from a rep at ST.

You should probably post this item to the forum that deals with the wireless modules, over in Interface and Connectivity ICs/Wi-Fi Modules.

Andrei

Posted on May 30, 2017 at 19:39

Thank you Andrei for your information and for the advice. I will do so. ^-^v

Sincerely,

Aron

Posted on May 30, 2017 at 23:10

Hi Andrei,

I did go to the forum of which you spoke and the question already existed thankfully so I got the firmware but now I am having issues with the OTA update.

I am getting 'Invalid Flash Parameters' when issuing the AT+S.FWUPDATE=www.………. command.

I believe I have the module with the external flash as I am seeing this from AT&V

♯ Dumping All Configuration Keys:

♯  nv_manuf = ST

♯  nv_model = SPWF01Sx1

….

Is there a way to indicate which module type I have by simply looking at it? And if I have a module without external flash, any way to do the OTA without having the flash and how?

Any help is appreciated.

Sincerely,

Aron