wiseconnect-wifi-bt-sdk icon indicating copy to clipboard operation
wiseconnect-wifi-bt-sdk copied to clipboard

SAPI MCU Sleep Issue

Open wildbiotiger opened this issue 8 months ago • 0 comments

Deep sleep on the STM32s soft resets the device unless certain variables are preserved across the reset boundary.

However, the SAPI global buffer variable is not able to be preserved and requires an additional call to rsi_driver_init() which zeroes out the buffer and drops any active connections.

Short term: what variables have to be preserved across the reset boundary to maintain proper state?

Long term: can we add a soft init function to prevent zeroing out the buffer or store the main features within the buffer so that no init has to be called on reset?

wildbiotiger avatar Nov 07 '23 21:11 wildbiotiger