愚者千虑必有一得 2024年 Jun 13日 11:09
你好,能提供一份完整的错误log吗?我们看看有没啥特殊的场景。
另外我们flash存储有两套,一套kv,一套uf,我们kv遇到这样的问题的时候,会做一次软件重启来恢复。目前看,uf没有这样的恢复操作。
打印等级之前设为err了,打印的有点少。rtc预约时间到时,会执行以下代码:
uFILE* tuya_fid = NULL;
static uint8_t try_times=0;
LOG_ERROR(".......alarm active %d",try_times);
++try_times;
LOG_ERROR("UF %d %p",ufexist(FEED_SCHEDULE_LIST),tuya_fid);
tuya_fid = ufopen(FEED_SCHEDULE_LIST,"r");
下面是log:
[14:53:02:044] ␍[06-13 14:53:01 TUYA Err][feeder_hw.c:343] .......alarm active 0␍␊
[14:53:02:171] ␍[06-13 14:53:01 TUYA Err][uf_flash_file_app.c:411] uf_get_size err,filepath:/hy_feeder/schedulelist.bin,ret:4␍␊
[14:53:02:180] ␍[06-13 14:53:01 TUYA Err][sys_storage.c:504] UF 8 0 ->00000000␍␊
[14:53:02:186] ␍[06-13 14:53:01 TUYA Err][uf_flash_file_app.c:266] uf_open /hy_feeder/schedulelist.bin err 4␍␊
[14:53:02:206] ␍[06-13 14:53:01 TUYA Err][feeder_hw.c:343] .......alarm active 1␍␊
[14:53:02:220] ␍[06-13 14:53:01 TUYA Err][sys_storage.c:504] UF 8 1 ->00000000␍␊
[14:53:02:225] ␍[06-13 14:53:01 TUYA Err][uf_flash_file_app.c:266] uf_open /hy_feeder/schedulelist.bin err 4␍␊
[14:53:02:237] ␍[06-13 14:53:01 TUYA Err][feeder_hw.c:343] .......alarm active 2␍␊
[14:53:02:254] ␍[06-13 14:53:01 TUYA Err][uf_flash_file_app.c:411] uf_get_size err,filepath:/hy_feeder/schedulelist.bin,ret:4␍␊
[14:53:02:262] ␍[06-13 14:53:01 TUYA Err][sys_storage.c:504] UF 8 0 ->00000000␍␊
[14:53:02:277] ␍[06-13 14:53:01 TUYA Err][uf_flash_file_app.c:266] uf_open /hy_feeder/schedulelist.bin err 4␍␊