fixed GSM start crash by increase stack size for init task
This commit is contained in:
parent
353c9ce606
commit
093d1abd78
|
|
@ -158,7 +158,6 @@ static void GSMInitTask(void *pvParameter)
|
||||||
gsm_reset(0);
|
gsm_reset(0);
|
||||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||||
gsm_reset(1);
|
gsm_reset(1);
|
||||||
vTaskDelay(pdMS_TO_TICKS(10000));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -262,13 +261,13 @@ modem_init_fail:
|
||||||
void PPPModemColdStart(void)
|
void PPPModemColdStart(void)
|
||||||
{
|
{
|
||||||
ResetType = 0;
|
ResetType = 0;
|
||||||
xTaskCreate(GSMInitTask, "GSMInitTask", 1024 * 4, &ResetType, 3, initTaskhandle);
|
xTaskCreate(GSMInitTask, "GSMInitTask", 1024 * 6, &ResetType, 3, initTaskhandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPPModemSoftRestart(void)
|
void PPPModemSoftRestart(void)
|
||||||
{
|
{
|
||||||
ResetType = 1;
|
ResetType = 1;
|
||||||
xTaskCreate(GSMInitTask, "GSMInitTask", 1024 * 4, &ResetType, 3, initTaskhandle);
|
xTaskCreate(GSMInitTask, "GSMInitTask", 1024 * 6, &ResetType, 3, initTaskhandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void GSMRunTask(void *pvParameter)
|
static void GSMRunTask(void *pvParameter)
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,11 @@ esp_err_t WebGuiAppInit(void)
|
||||||
init_rom_fs("/espfs");
|
init_rom_fs("/espfs");
|
||||||
|
|
||||||
|
|
||||||
|
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
|
||||||
|
/*Start PPP modem*/
|
||||||
|
if (GetSysConf()->gsmSettings.Flags1.bIsGSMEnabled)
|
||||||
|
PPPModemStart();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CONFIG_WEBGUIAPP_ETHERNET_ENABLE
|
#if CONFIG_WEBGUIAPP_ETHERNET_ENABLE
|
||||||
/*Start Ethernet connection*/
|
/*Start Ethernet connection*/
|
||||||
|
|
@ -113,12 +118,6 @@ esp_err_t WebGuiAppInit(void)
|
||||||
EthStart();
|
EthStart();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
|
|
||||||
/*Start PPP modem*/
|
|
||||||
if (GetSysConf()->gsmSettings.Flags1.bIsGSMEnabled)
|
|
||||||
PPPModemStart();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_WEBGUIAPP_WIFI_ENABLE
|
#if CONFIG_WEBGUIAPP_WIFI_ENABLE
|
||||||
/*Start WiFi connection*/
|
/*Start WiFi connection*/
|
||||||
if (GetSysConf()->wifiSettings.Flags1.bIsWiFiEnabled)
|
if (GetSysConf()->wifiSettings.Flags1.bIsWiFiEnabled)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user