Other Parts Discussed in Thread: UNIFLASH
So, as the title stated, our application stuck in a power on -> boot -> call sl_Start -> reset" loop. This happen if I power off the board while in provisioning state. In previous versions of the code, this behavior do not occurs. I could track this behavior and it started after I add a call to set country code, setting to "00". If a set to "BR" (Brazil, where I am), the code do not stuck if I reset while in provisioning mode. Am I doing something wrong? Could you try to reproduce that? I am currently using SDK 3.30.01.02, with service pack "sp_4.10.0.1_3.7.0.1_3.1.0.26".
_u8 Str[] = "00"; Status = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_OPT_COUNTRY_CODE, 2, Str); if( Status ) { UART_PRINT("Failed set AP Country. Error: %d\n\r", Status); }
The return error from sl_Start is -2005 (SL_API_ABORTED), caused by a timeout event, 1 minute after the call. After that, the code currently call "ProcessRestartMcu", so that is why we enter in a loop continuously reseting.
Thank you