We’re seeing an issue when performing wiced_deinit with FreeRTOS. The same operation works with ThreadX without problems. There appears to be some memory corruption at the time of wiced_rtos_deinit(). We're using SDK 2.4.1 as we’re not able to move to newer SDKs on account of stability issues on our platform.
This issue can be easily reproduced by running the powercycle snip as-is. Compile options can be seen from the make target under.
snip.powercycle-ISM43362_M3G_L44-FreeRTOS-LwIP download run