From 99c90d1740e5813e218461907074c0116d83a430 Mon Sep 17 00:00:00 2001 From: wangxujie-laptop <390834610@qq.com> Date: Fri, 28 Feb 2025 14:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8A=E6=94=BE=E5=86=85=E5=AD=98=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Src/freertos.c | 2 +- MDK-ARM/remote_dido_unit.uvprojx | 5 +++-- User/application/src/tcpserverc.c | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c index 9d6287d..35b83a5 100644 --- a/Core/Src/freertos.c +++ b/Core/Src/freertos.c @@ -196,7 +196,7 @@ void start_gpio_di_do_task(void const *argument) send_data_flag_cmd = 0; } } - vTaskDelay(200); + vTaskDelay(100); } /* USER CODE END start_gpio_di_do_task */ } diff --git a/MDK-ARM/remote_dido_unit.uvprojx b/MDK-ARM/remote_dido_unit.uvprojx index 5b2a092..7a1875f 100644 --- a/MDK-ARM/remote_dido_unit.uvprojx +++ b/MDK-ARM/remote_dido_unit.uvprojx @@ -16,8 +16,8 @@ STM32F407VGTx STMicroelectronics - Keil.STM32F4xx_DFP.2.17.1 - https://www.keil.com/pack/ + Keil.STM32F4xx_DFP.2.16.0 + http://www.keil.com/pack/ IRAM(0x20000000-0x2001BFFF) IRAM2(0x2001C000-0x2001FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) FPU2 CPUTYPE("Cortex-M4") TZ @@ -186,6 +186,7 @@ 2 0 0 + 0 1 0 8 diff --git a/User/application/src/tcpserverc.c b/User/application/src/tcpserverc.c index 72b31d8..c010339 100644 --- a/User/application/src/tcpserverc.c +++ b/User/application/src/tcpserverc.c @@ -88,9 +88,8 @@ static err_t tcpecho_recv_control(void *arg, struct tcp_pcb *tpcb, struct pbuf * /*2. 判断所要执行的操作 读或写指令*/ /*3. 对要发送的数据进行校验,组包,返回数据*/ - - pbuf_free(p); } + pbuf_free(p); } else if (err == ERR_OK) // 检测到对方主动关闭连接时,也会调用recv函数,此时p为空 {