MRS261L下载img文件正常,调用sensor_startup()后出现异常,附件为从开机到出错的完整日志

m0_73319669 2026-05-21 17:08:01

<info> app: sync nack and retry remain 100 ret=-1

<info> app: sync nack and retry remain 99 ret=-1

<info> app: sync nack and retry remain 98 ret=-1

<info> app: sync nack and retry remain 97 ret=-1

<info> app: sync nack and retry remain 96 ret=-1

<info> app: sync nack and retry remain 95 ret=-1

<info> app: sync nack and retry remain 94 ret=-1

<info> app: sync nack and retry remain 93 ret=-1

<info> app: sync nack and retry remain 92 ret=-1

<info> app: sync nack and retry remain 91 ret=-1

<info> app: sync nack and retry remain 90 ret=-1

<info> app: sync nack and retry remain 89 ret=-1

<info> app: sync nack and retry remain 88 ret=-1

<info> app: sync nack and retry remain 87 ret=-1

<info> app: sync nack and retry remain 86 ret=-1

<info> app: sync ack received

<info> app: sync 85 ret 0

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto to sync

<info> app: sync ack received

<info> app: sync 100 ret 0

<info> app: goto send download start command

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: fw download start end, ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 1024

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: goto download data size 272

<info> app: wait fwdl ack size 14

<info> app: received ack magic

<info> app: fwdl transfer end ret = 0

<info> app: sensor_download ret 0

<info> app: firmware download success

<info> app: sync nack and retry remain 100

<info> app: sync ack received

<info> app: sync 99 ret 0

<info> app: hif msg send:

<info> app: 
 hif msg send ret = 0

<info> app: checksum AFFBF8ED + 50040712

<info> app: rx hif msg:
<info> app:  A5 ED 12 07 04 50 00 00|.....P..
<info> app:  00 00 ED F8 FB AF      |......  
<info> app: motion detect stop success

<info> app: sync ack received

<info> app: sync 100 ret 0

<info> app: sensor_load_config

<info> app: section_en[0]            [0x00]

<info> app: output_en [0]            [0x00]

<info> app: det_mode  [0]            [0x00]

<info> app: section_en[1]            [0x00]

<info> app: output_en [1]            [0x00]

<info> app: det_mode  [1]            [0x00]

<info> app: section_en[2]            [0x00]

<info> app: output_en [2]            [0x00]

<info> app: det_mode  [2]            [0x00]

<info> app: tlv_dump:

<info> app: size:227

<info> app: 

<info> app: 0x11 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x12 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x13 
<info> app: 0x01 
<info> app: 

<info> app: 0x00 
<info> app: 0x14 
<info> app: 0x02 
<info> app: 0xF4 
<info> app: 0x01 
<info> app: 0x15 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 

<info> app: 0x16 
<info> app: 0x02 
<info> app: 0x14 
<info> app: 0x00 
<info> app: 0x18 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x19 
<info> app: 

<info> app: 0x01 
<info> app: 0x03 
<info> app: 0x20 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x21 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 

<info> app: 0x22 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x23 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x24 
<info> app: 0x02 
<info> app: 

<info> app: 0xAC 
<info> app: 0x0D 
<info> app: 0x25 
<info> app: 0x02 
<info> app: 0xFA 
<info> app: 0x00 
<info> app: 0x26 
<info> app: 0x02 
<info> app: 

<info> app: 0x08 
<info> app: 0x00 
<info> app: 0x28 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x40 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 

<info> app: 0x41 
<info> app: 0x02 
<info> app: 0xE0 
<info> app: 0x00 
<info> app: 0x42 
<info> app: 0x02 
<info> app: 0xC0 
<info> app: 0xF9 
<info> app: 

<info> app: 0x43 
<info> app: 0x01 
<info> app: 0x20 
<info> app: 0x44 
<info> app: 0x01 
<info> app: 0x09 
<info> app: 0x45 
<info> app: 0x01 
<info> app: 

<info> app: 0x00 
<info> app: 0x30 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x31 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x32 
<info> app: 

<info> app: 0x01 
<info> app: 0x30 
<info> app: 0x33 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x34 
<info> app: 0x02 
<info> app: 0x14 
<info> app: 

<info> app: 0x00 
<info> app: 0x35 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x36 
<info> app: 0x01 
<info> app: 0x05 
<info> app: 0x37 
<info> app: 

<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x38 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x20 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 

<info> app: 0x21 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x22 
<info> app: 0x01 
<info> app: 0xFF 
<info> app: 0x23 
<info> app: 0x01 
<info> app: 

<info> app: 0x01 
<info> app: 0x24 
<info> app: 0x02 
<info> app: 0xE8 
<info> app: 0x03 
<info> app: 0x25 
<info> app: 0x02 
<info> app: 0xFA 
<info> app: 

<info> app: 0x00 
<info> app: 0x26 
<info> app: 0x02 
<info> app: 0x08 
<info> app: 0x00 
<info> app: 0x28 
<info> app: 0x01 
<info> app: 0x04 
<info> app: 

<info> app: 0x50 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x51 
<info> app: 0x01 
<info> app: 0x08 
<info> app: 0x52 
<info> app: 0x02 
<info> app: 

<info> app: 0xE0 
<info> app: 0x04 
<info> app: 0x53 
<info> app: 0x02 
<info> app: 0x90 
<info> app: 0x00 
<info> app: 0x54 
<info> app: 0x02 
<info> app: 

<info> app: 0x00 
<info> app: 0xFE 
<info> app: 0x55 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x56 
<info> app: 0x02 
<info> app: 0x90 
<info> app: 

<info> app: 0x01 
<info> app: 0x57 
<info> app: 0x01 
<info> app: 0x02 
<info> app: 0x58 
<info> app: 0x01 
<info> app: 0x03 
<info> app: 0x5A 
<info> app: 

<info> app: 0x01 
<info> app: 0x06 
<info> app: 0x30 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x31 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 

<info> app: 0x32 
<info> app: 0x01 
<info> app: 0x20 
<info> app: 0x33 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x34 
<info> app: 0x02 
<info> app: 

<info> app: 0x14 
<info> app: 0x00 
<info> app: 0x35 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x36 
<info> app: 0x01 
<info> app: 0x0A 
<info> app: 

<info> app: 0x37 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x38 
<info> app: 0x01 
<info> app: 0x01 
<info> app: 0x20 
<info> app: 0x01 
<info> app: 

<info> app: 0x02 
<info> app: 0x21 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x30 
<info> app: 0x01 
<info> app: 0x02 
<info> app: 0x31 
<info> app: 

<info> app: 0x01 
<info> app: 0x00 
<info> app: 0x20 
<info> app: 0x01 
<info> app: 0x03 
<info> app: 0x21 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 

<info> app: 0x30 
<info> app: 0x01 
<info> app: 0x03 
<info> app: 0x31 
<info> app: 0x01 
<info> app: 0x00 
<info> app: 0xFF 
<info> app: 0x01 
<info> app: 

<info> app: 0x03 
<info> app: 0xFE 
<info> app: 0x01 
<info> app: 0x08 
<info> app: 0xA2 
<info> app: 0x05 
<info> app: 0x03 
<info> app: 0x00 
<info> app: 

<info> app: 0x00 
<info> app: 0x00 
<info> app: 0x00 
<info> app: 

<info> app: hif msg send:

<info> app: 
 hif msg send ret = 0

<info> app: checksum 8DFA9EED + 60046012

<info> app: rx hif msg:
<info> app:  A5 84 12 60 04 60 00 01|...`.`..
<info> app:  01 12 ED 9E FA 8D      |......  
<info> app: hif msg send:

<info> app: 
 hif msg send ret = 0

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: hif read magic error

<info> app: rx hif msg:
<info> app:  FF 84 12 60 04 60      |...`.`  
<info> app: sensor msg err

<info> app: start sensor radar err ret -1

<info> app: sensor radar start motion detect fail -1

<info> app: sensor start fail ret -1
 

...全文
61 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复

您好,从您的log得到的初步信息为,uart通信,带主动上报,当固件默认配置写入后主控uart接受数据不及预期,可以分析出问题点可能为为:
1、从错误log固定为“FF 84 12 60 04 60”,先用逻辑分析仪看数据究竟有没有送给主控,没有的话看下载的固件和型号是否匹配,有数据送上来看送上来的数据和uart适配的接口实际读的数据是否一致。
2、从log“ app: 0x11 app: 0x01 app: 0x01 ”可以确认主控下发了主动上报配置后,数据就不及预期了,出现该问题常见为主控实时性不够,来不及接收数据导致丢包甚至驱动挂死,用逻辑分析仪看线路现场可以看到有大量数据送到主控rx。
解决方案:
1、如果是问题1,更换与传感器匹配的固件,如果手动转出来的固件,确认主控存的固件与原始固件数据是否一致;驱动要是读不出数据使用逻辑分析仪配合处理处理问题
2、如果是问题2,可以根据<MRS2xx_毫米波传感器Demo_指导手册>,重新打包一个不带主动上报的固件。在功耗的角度看,主动上报功能仅用在工具评估,如果一定要保留主动上报功能,提高主控实时性直到配合逻辑分析仪看到线路数据与主控rx的数据完全匹配
一些建议:
1、最新的<MRS2xx 毫米波雷达传感器_主控开发手册>,里面有详细的配置分析指导,以及适配时出现的问题处理方法,后续有问题请先看文档Q&A章节

m0_73319669 05-22 14:14
  • 举报
回复
@Possumic正和微芯官方 您好,错误log固定为“FF 84 12 60 04 60”这个问题已经解决,是接收的时候读到的数据有问题,导致读到的是FF,修改后成功读到了A5,现在流程是按照demo来做的,执行完sensor_startup()后就等待DOUT输出高电平,app_sensor_dynamic_param_cfg()及后面的代码都不执行。 我们现在的主控方案是采用IIC驱动的,所以不是前面您说的uart通信。请问DemoTool通过Release Image生产新的img文件是不是按照如下流程来做: 1.需求:只需要移动检测 Motion Detection界面"固件版本"选择sram_motion_detection,根据需要选择其他配置,然后生成csv格式的配置文件;Release Image界面"输入Image文件"勾选官方img里面的261L_IIC_sram_motion_detection开头的img,"输入配置文件"勾选刚才生成的csv,这样合成出来的就是最终的img? 2.需求:同时需要移动检测跟人体检测 1) Motion Detection界面"固件版本"选择xip_full_spec,根据需要选择其他配置,然后生成csv格式的配置文件,名称为csv_motion; 2) Presence Detection界面"固件版本"选择xip_full_spec,根据需要选择其他配置,然后生成csv格式的配置文件,名称为csv_presence; 3) Release Image界面"输入Image文件"勾选官方img里面的261L_IIC_xip_full_spec开头的img,"输入配置文件"勾选刚才生成的csv_motion,先生成一个新的img,比如img_motion; 4) Release Image界面"输入Image文件"勾选img_motion;,"输入配置文件"勾选刚才生成的csv_presence,再生成一个最终的img,比如img_motion_presence; 这样img_motion_presence是不是最终的img文件?因为Release Image界面一次只能选一种csv配置文件,所以想请问是不是要分步骤合成。另外上述Release Image界面选择img文件的方式有没有问题?

177

社区成员

发帖
与我相关
我的任务
社区描述
欢迎来到正和微芯官方社区,这里是毫米波雷达技术爱好者、开发者、技术专家以及行业领袖的聚集地。我们致力于提供一个开放、合作、创新的交流平台,让每一位成员都能在这里找到价值、获得启发、实现成长。
硬件架构射频工程物联网 企业社区 广东省·珠海市
社区管理员
  • Possumic正和微芯官方
  • sblxk008
  • 波谱Sense
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧