debug(vd960DBN): clear_buf_dbn_ble 抓现行 — 有货被清时打印调用者返回地址

- 已排除 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 文件直接定位调用者
This commit is contained in:
wangfq
2026-08-12 14:14:39 +08:00
parent 66f156105c
commit 7a08e083d6
@@ -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;