Skip to main content
yoann LBY
Senior
Apr 4, 2018 10:15 AM UTC
Solved

SPWF04Sx - FWUPDATE

Posted on April 04, 2018 at 12:15

hi,

i use AT cmd FWUPDATE to update firmware of wifi module.

i see sequence in HandsOn_Draftv3.0

AT+S.FWUPDATE=e,192.168.x

next

AT+S.RESET -> (Soft_Reset())

next

AT+S.FCFG

the FWUPDATE works well (next Soft_Reset()) but i need to restart (power off/on) wifi module.

is it correct?

what is the good practice after the FWUPDATE? (same with FSUPDATE)

thks

Yoann 

    This topic has been closed for replies.
    Elio Cometti
    Elio ComettiBest answer
    Visitor II
    Apr 4, 2018 12:30 PM UTC
    Posted on April 04, 2018 at 14:30

    Hello Yoann,

    the FW update is performed at boot, so after calling AT+S.FWUPDATE you must perform a (sw or hw) reset or a power off/on cycle. Please take care that the SW reset (i.e. reset by AT+S.RESET command) drives the reset line to low level for the time necessary to reset the SPWF's micro.

    Once the FW update has been completed an HW reset is raised by the module itself and the SPWF04 restarts with the new FW. If something goes wrong during the update (e.g. corrupted or wrong FW, wrong AES key,), then the 'new FW' is erased from flash and the SPWF04 is restarted with the last FW.

    Might it be the case that the reset line is tight high by the host controller?

    Regards,

    Elio

    1 reply

    Elio Cometti
    Elio ComettiBest answer
    Visitor II
    Apr 4, 2018 12:30 PM UTC
    Posted on April 04, 2018 at 14:30

    Hello Yoann,

    the FW update is performed at boot, so after calling AT+S.FWUPDATE you must perform a (sw or hw) reset or a power off/on cycle. Please take care that the SW reset (i.e. reset by AT+S.RESET command) drives the reset line to low level for the time necessary to reset the SPWF's micro.

    Once the FW update has been completed an HW reset is raised by the module itself and the SPWF04 restarts with the new FW. If something goes wrong during the update (e.g. corrupted or wrong FW, wrong AES key,), then the 'new FW' is erased from flash and the SPWF04 is restarted with the last FW.

    Might it be the case that the reset line is tight high by the host controller?

    Regards,

    Elio