4.1.2 Firmware and Driver Version
m2m_wifi_init
), the host driver checks the
compatibility between the driver and the WINC firmware. The relevant parameters are:M2M_HIF_MAJOR_VALUE
M2M_HIF_MINOR_VALUE
Host Interface Level: X.Y.
If the driver and the WINC firmware have the same values of
M2M_HIF_MAJOR_VALUE
, then they are deemed compatible and
m2m_wifi_init
returns with M2M_SUCCESS
.
If the driver and the WINC firmware have different values of
M2M_HIF_MAJOR_VALUE
, then they are deemed incompatible and
m2m_wifi_init
returns with
M2M_ERR_FW_VER_MISMATCH
. In this case, communication is limited; the
only permitted communication is for the driver to request the WINC firmware to switch to
the WINC firmware image in the inactive partition of WINC flash, via
m2m_wifi_check_ota_rb
and m2m_ota_switch_firmware
.
Example code to handle this situation is available in the driver file
m2m_ota.h
.