From: 1624952103 Date: Mon, 11 May 2026 01:43:08 +0000 (+0800) Subject: 将thread_init.c at lwip等线程创建在EXTEND_MEM 恢复slip test init 修复4G开启失败问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3407%2Ftarget%2F1;p=mirrors%2FFD230.git 将thread_init.c at lwip等线程创建在EXTEND_MEM 恢复slip test init 修复4G开启失败问题 --- diff --git a/code/sdk/application/brandy/brandy_standard/thread_init.c b/code/sdk/application/brandy/brandy_standard/thread_init.c index ae358e748..63edf6b70 100644 --- a/code/sdk/application/brandy/brandy_standard/thread_init.c +++ b/code/sdk/application/brandy/brandy_standard/thread_init.c @@ -118,7 +118,7 @@ #define APP_MAIN_STACK_SIZE 0xC00 #define SAVE_FILE_STACK_SIZE 0xC00 #define AUTO_OTA_STACK_SIZE 0xC00 -#define LWIP_MAIN_STACK_SIZE 0xC00 +#define LWIP_MAIN_STACK_SIZE 0xF00 #define TIME_MAX 64 #define USEC_TO_MILLI 1000 @@ -146,10 +146,10 @@ void save_file_main(void); static uint32_t g_app_delay_ms = TASK_COMMON_APP_DELAY_MS; app_task_definition_t g_app_tasks[] = { { { "app", 0, NULL, 0, NULL, APP_MAIN_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, - (osThreadFunc_t)app_main, NULL, NULL, USE_DTCM_MEM }, + (osThreadFunc_t)app_main, NULL, NULL, USE_EXTEND_MEM }, #if SUPPORT_LWIP { { "lwip", 0, NULL, 0, NULL, LWIP_MAIN_STACK_SIZE, TASK_PRIORITY_BRANDY_APP, 0, 0 }, - (osThreadFunc_t)lwip_main, NULL, NULL, USE_DTCM_MEM }, + (osThreadFunc_t)lwip_main, NULL, NULL, USE_EXTEND_MEM }, #endif #if (USE_COMPRESS_LOG_INSTEAD_OF_SDT_LOG == NO) { { "log", 0, NULL, 0, NULL, (0xC00), TASK_PRIORITY_LOG, 0, 0 }, @@ -158,9 +158,9 @@ app_task_definition_t g_app_tasks[] = { { { "bt_sdk", 0, NULL, 0, NULL, BTH_SDK_STACK_SIZE, TASK_PRIORITY_SDK, 0, 0 }, (osThreadFunc_t)bt_acore_task_main, NULL, NULL, USE_DTCM_MEM }, #ifdef SUPPORT_AT_CMD - { { "at_cmd", 0, NULL, 0, NULL, 0xC00, TASK_PRIORITY_APP, 0, 0 }, + { { "at_cmd", 0, NULL, 0, NULL, 0x1C00, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)at_cmd_task_process_handler, NULL, - (CreateQueueFunction_t)at_cmd_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)at_cmd_task_queue_init, USE_EXTEND_MEM }, #endif #if defined(SUPPORT_AT_GRAPHIC) { { "at_graphic", 0, NULL, 0, NULL, AT_GRAPHIC_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, @@ -175,17 +175,17 @@ app_task_definition_t g_app_tasks[] = { #ifdef SUPPORT_AT_AUDIO { { "at_audio", 0, NULL, 0, NULL, AT_AUDIO_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)audio_at_task_process_handler, NULL, - (CreateQueueFunction_t)audio_at_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)audio_at_task_queue_init, USE_EXTEND_MEM }, #endif #ifdef SUPPORT_AT_BT_MANAGER { { "at_bt_manager", 0, NULL, 0, NULL, AT_BT_MANAGER_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)bt_manager_task_process_handler, NULL, - (CreateQueueFunction_t)bt_manager_at_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)bt_manager_at_task_queue_init, USE_EXTEND_MEM }, #endif #ifdef SUPPORT_AT_MEDIA { { "at_media", 0, NULL, 0, NULL, AT_MEDIA_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)media_at_task_process_handler, NULL, - (CreateQueueFunction_t)media_at_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)media_at_task_queue_init, USE_EXTEND_MEM }, #endif #ifdef HSO_SUPPORT { { "dfx_msg", 0, NULL, 0, NULL, DFX_MSG_STACK_SIZE, TASK_PRIORITY_DFX_MSG, 0, 0 }, @@ -204,7 +204,7 @@ app_task_definition_t g_app_tasks[] = { (CreateQueueFunction_t)power_display_task_init, USE_DTCM_MEM }, #endif { { "save_file", 0, NULL, 0, NULL, SAVE_FILE_STACK_SIZE, TASK_PRIORITY_SAVE_FILE, 0, 0 }, - (osThreadFunc_t)save_file_main, NULL, NULL, USE_DTCM_MEM }, + (osThreadFunc_t)save_file_main, NULL, NULL, USE_EXTEND_MEM }, #ifdef SUPPORT_AUTO_OTA { { "auto_ota", 0, NULL, 0, NULL, AUTO_OTA_STACK_SIZE, TASK_PRIORITY_AUTO_OTA, 0, 0 }, (osThreadFunc_t)auto_ota_task_main, NULL, NULL, USE_DTCM_MEM }, diff --git a/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c b/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c index ab25144b1..8c7f3a994 100644 --- a/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c +++ b/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c @@ -377,7 +377,7 @@ lwip_init(void) #endif /* LWIP_DNS */ #if LWIP_SLIP - // slip_test_init();暂时屏蔽 + slip_test_init(); #endif /* LWIP_SLIP */ #if PPP_SUPPORT ppp_init();