From fae7fcd7ee893dc19d7b67c41895f1153d1ed9fc Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期三, 05 三月 2025 15:32:48 +0800 Subject: [PATCH] MK大工卡标签的boot,修改了UART1的管脚,仍有看门狗 --- dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c b/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c index ed3fa8c..5b6a535 100644 --- a/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c +++ b/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c @@ -35,6 +35,7 @@ #include "AppConfig.h" #include "mk_uart.h" #include "mk_trace.h" +#include "mk_wdt.h" /** @addtogroup STM32F0xx_IAP * @{ */ @@ -348,7 +349,7 @@ { for (packets_received = 0, file_done = 0, buf_ptr = buf; ;) { - + wdt_ping(WDT_ID0);//喂狗 switch (Receive_Packet(packet_data, &packet_length, NAK_TIMEOUT)) { case 0://成功接收到1K -- Gitblit v1.9.3