Hi,
Our application is sending raw packets every 15 seconds like the transceiver mode example application, and periodically (once per day), doing a connection to a AP, its a battery driven application so it also goes back to hibernate after every cycle
The way transceiver mode is entered is by doing the following policy set
sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(0,0,0,0,0), &policyVal, 1);
The sl_WlanPolicySet function is not very well documentet, it doesn't explicitly say it does any write to the SFlash, but reading further you can find information that it does this implicitly
if this function always generates erases/writes to the flash for every call that happens every 15 second, the SFlash max erases/writes would be exceeded by 17 days! (100000 writes)
So we analyzed the traffic between the host and flash and our conclusion was that it does indeed NOT always generate a erase/write cycle, if we try to write the same values it is smart enough to notice those values are the ones already stored, but if we toggle one of the bits it generates an erase and a write
Is our conclusion correct?
PS. We know we could have been using up to 7 stored profiles and get rid of our doubts
Best regards,
Markus