使用KV DB,调用wd_common_free_data(read_buf)的时候会重启

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
qzqstar
Posts: 1

请问一下,使用了KV_DB,初始化完成以后,读取数据,然后清空内部的read_buff,出现了报错,请问是什么原因?
[quote] // free the read_buff will trigger error??
/*
if (NULL != read_buf) {
wd_common_free_data(read_buf);
read_buf = NULL;
}*/[/quote]

报错打印:
[code][01-01 08:00:00 ty N][ble_gap.c,lr:0x2180885] Start Adv
(670)Assert at: vPortFree_cm:942
(670)Assert at: rtos_get_semaphore:271
2鱏€?&?諑迡聑G袖孁=B膒?屛搛藌殉綇變聴?鋣譧?X鯷Mz??$0銔襕Flash](components/easy_flash/easy_flash_V4.X/src/ef_env.c:1818) ENV start address is 0x007CB000, size is 8192 bytes.
[Flash]EasyFlash V4.1.0 is initialize success.
[Flash]You can get the latest version on https://github.com/armink/EasyFlash .
ate enabled is 0
driver_init end
uncali sdmadc value:[0 0]
reason - assert
regs - e, e, 0
start user app thread.
-------- left heap: 263024, reset reason: e
go to tuya
temp in otp is:562
rwnx_cal_set_rfconfig(0x101) phy on; rf off
user app entry(0x207ec11)
wakeup[/code]

愚者千虑必有一得
Posts: 618

Re: 使用KV DB,调用wd_common_free_data(read_buf)的时候会重启

代码上下文贴一下看看?这个接口到处在用的。

Post Reply