From 7a08e083d612d9ed011abef205109262302f6136 Mon Sep 17 00:00:00 2001 From: wangfq Date: Wed, 12 Aug 2026 14:14:39 +0800 Subject: [PATCH] =?UTF-8?q?debug(vd960DBN):=20clear=5Fbuf=5Fdbn=5Fble=20?= =?UTF-8?q?=E6=8A=93=E7=8E=B0=E8=A1=8C=20=E2=80=94=20=E6=9C=89=E8=B4=A7?= =?UTF-8?q?=E8=A2=AB=E6=B8=85=E6=97=B6=E6=89=93=E5=8D=B0=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E8=80=85=E8=BF=94=E5=9B=9E=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 已排除 simpleProfile_Notify (发送后 resp=1 队列完好) - 队列在 hex 打印后 ~20ms 被清空 (amt/seq/off 全0 = clear_buf_dbn_ble 效果) - clear_buf_dbn_ble 入口: 仅当 buf->flag=1 (有货被清) 时打印 + __builtin_return_address(0) - 烧录后 ret=地址 对照 .map 文件直接定位调用者 --- vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c index 46dd290..27b1ced 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c @@ -39,6 +39,12 @@ void clear_buf_dbn_ble(Buf_DBN_BLE * buf) { uint8_t i = 0; + if(buf->flag) + { + PRINT("CLEAR busy resp: amt=%d seq=%d off=%d ret=%08lx\n", + buf->pkg_amount, buf->pkg_seq, buf->dat_offset, + (unsigned long)__builtin_return_address(0)); + } buf->flag = 0; buf->magic = 0;