From 455f904336f69954b2deeac6f77e776c8f246942 Mon Sep 17 00:00:00 2001 From: wangxujie Date: Mon, 10 Feb 2025 16:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=93=9D=E7=89=99=E5=8F=91?= =?UTF-8?q?=E9=80=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MDK-ARM/TEST2.uvoptx | 21 +++++++++++++++++++-- User/application/src/tcpserverc.c | 8 ++------ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/MDK-ARM/TEST2.uvoptx b/MDK-ARM/TEST2.uvoptx index fc6b511..57d481d 100644 --- a/MDK-ARM/TEST2.uvoptx +++ b/MDK-ARM/TEST2.uvoptx @@ -148,7 +148,24 @@ -UB -O2254 -SF1800 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8000 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F407VGTx$CMSIS\Flash\STM32F4xx_1024.FLM) - + + + 0 + 0 + 289 + 1 +
134219030
+ 0 + 0 + 0 + 0 + 0 + 1 + ../Core/Src/stm32f4xx_it.c + + \\TEST2\../Core/Src/stm32f4xx_it.c\289 +
+
0 @@ -308,7 +325,7 @@ Application/User/Core - 1 + 0 0 0 0 diff --git a/User/application/src/tcpserverc.c b/User/application/src/tcpserverc.c index c3a7d2a..2c2c9a6 100644 --- a/User/application/src/tcpserverc.c +++ b/User/application/src/tcpserverc.c @@ -114,9 +114,7 @@ static err_t tcpecho_recv_ble1(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, memcpy(&server_pcb_ble1, &tpcb, sizeof(struct tcp_pcb *)); memcpy(ble1_uart6.tx_data, (int *)p->payload, p->tot_len); - HART2_RTS_SEND; - HAL_UART_Transmit(&huart6, ble1_uart6.tx_data, p->tot_len, 500); - HART2_RTS_RECEIVE; + dma_usart_send(&huart6, ble1_uart6.tx_data, p->tot_len); memset(p->payload, 0, p->tot_len); pbuf_free(p); @@ -138,9 +136,7 @@ static err_t tcpecho_recv_ble2(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, memcpy(&server_pcb_ble2, &tpcb, sizeof(struct tcp_pcb *)); memcpy(ble2_uart3.tx_data, (int *)p->payload, p->tot_len); - HART2_RTS_SEND; - HAL_UART_Transmit(&huart3, ble2_uart3.tx_data, p->tot_len, 500); - HART2_RTS_RECEIVE; + dma_usart_send(&huart3, ble2_uart3.tx_data, p->tot_len); memset(p->payload, 0, p->tot_len); pbuf_free(p);