stm32/boards/NUCLEO_WB55: Update rfcore_firmwre for new WS.

Adds a fix to behavior occuring since WS 1.11 where the FUS returns
misleading statuses during WS upgrade.
This commit is contained in:
David Michieli 2021-10-12 12:07:02 +11:00 committed by Damien George
parent a0890983ea
commit 6259aa50eb

View File

@ -537,9 +537,13 @@ def resume():
elif status == 0: elif status == 0:
log("WS update successful") log("WS update successful")
_write_state(_STATE_WAITING_FOR_WS) _write_state(_STATE_WAITING_FOR_WS)
elif result == 0: elif result in (0, 0xFE):
# We get a error response with no payload sometimes at the end # We get an error response with no payload sometimes at the end
# of the update (this is not in AN5185). Re-try the GET_STATE. # of the update (this is not in AN5185). Additionally during
# WS update, newer WS reports (status, result) of (255, 254)
# before eventually reporting the correct state of
# _STATE_INSTALLING_WS once again. In these cases, re-try the
# GET_STATE.
# The same thing happens transitioning from WS to FUS mode. # The same thing happens transitioning from WS to FUS mode.
# The actual HCI response has no payload, the result=0 comes from # The actual HCI response has no payload, the result=0 comes from
# _parse_vendor_response above when len=7. # _parse_vendor_response above when len=7.