主题中讨论的其他器件:CC2652R7、 UNIFLASH
大家好、
以下是客户的请求:
我是否可以问、问题是 CC2652R7中的程序未正确烧录?
在 ubuntu 下编译并生成了 Hex 文件、然后通过 uniflash 将它们刻录到 cc2652r7。
项目为 git clone --递归 se-submodules github.com/.../connectedhomeip
CC2652R7板的串行端口打印如下:
#000001 [ 0.039 ] INFO: (led_service.c:191) Registered service, 5 attributes, status 0x00 #000002 [ 0.040 ] INFO: (button_service.c:230) Registered service, 7 attributes #000003 [ 0.040 ] INFO: (data_service.c:209) Registered service, 6 attributes #000004 [ 0.041 ] INFO: (project_zero.c:660) Registered OAD Service #000005 [ 0.041 ] INFO: (project_zero.c:2888) Left button not held under boot, not reverting to factory. #000006 [ 0.041 ] INFO: (project_zero.c:2890) Right+Left button not held under boot, not erasing external flash. #000007 [ 0.041 ] INFO: (project_zero.c:678) OAD Image v0001 #000008 [ 0.041 ] INFO: (led_service.c:207) Registered callbacks to application. Struct @200021e4 #000009 [ 0.041 ] INFO: (button_service.c:248) Registered callbacks to application. Struct @200021ec #000010 [ 0.041 ] INFO: (data_service.c:227) Registered callbacks to application. Struct @200021f4 #000011 [ 0.041 ] INFO: (led_service.c:242) SetParameter : LED0 len: 1 #000012 [ 0.041 ] INFO: (led_service.c:250) SetParameter : LED1 len: 1 #000013 [ 0.041 ] INFO: (button_service.c:289) SetParameter : BUTTON0 len: 1 #000014 [ 0.041 ] INFO: (button_service.c:322) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000015 [ 0.041 ] INFO: (button_service.c:300) SetParameter : BUTTON1 len: 1 #000016 [ 0.041 ] INFO: (button_service.c:322) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000017 [ 0.041 ] INFO: (data_service.c:265) SetParameter : String len: 40 #000018 [ 0.041 ] INFO: (data_service.c:276) SetParameter : Stream len: 20 #000019 [ 0.041 ] INFO: (data_service.c:298) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000020 [ 0.048 ] INFO: (project_zero.c:1161) GAP is started. Our address: D8:B6:73:6C:14:EC #000021 [ 0.048 ] INFO: (project_zero.c:1179) Name in advertData array: ProjectZero #000022 [ 0.053 ] INFO: (project_zero.c:1382) Adv Set 0 Enabled #000023 [ 4.195 ] INFO: (project_zero.c:2628) Button interrupt: Button 1 #000024 [ 4.245 ] INFO: (project_zero.c:1994) Button 1 pressed #000025 [ 4.245 ] INFO: (button_service.c:300) SetParameter : BUTTON1 len: 1 #000026 [ 4.245 ] INFO: (button_service.c:322) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000027 [ 6.896 ] INFO: (project_zero.c:2628) Button interrupt: Button 1 #000028 [ 6.946 ] INFO: (project_zero.c:1994) Button 1 released #000029 [ 6.946 ] INFO: (button_service.c:300) SetParameter : BUTTON1 len: 1 #000030 [ 6.946 ] INFO: (button_service.c:322) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000031 [ 366.585 ] INFO: (project_zero.c:2628) Button interrupt: Button 1 #000032 [ 366.635 ] INFO: (project_zero.c:1994) Button 1 pressed #000033 [ 366.635 ] INFO: (button_service.c:300) SetParameter : BUTTON1 len: 1 #000034 [ 366.635 ] INFO: (button_service.c:322) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000035 [ 369.183 ] INFO: (project_zero.c:2628) Button interrupt: Button 1 #000036 [ 369.233 ] INFO: (project_zero.c:1994) Button 1 released #000037 [ 369.233 ] INFO: (button_service.c:300) SetParameter : BUTTON1 len: 1 #000038 [ 369.233 ] INFO: (button_service.c:322) Trying to send noti/ind: connHandle ffff, Noti/ind disabled
Raspberry Pi 构建的边界路由验证 RCP 无法通过:
ubuntu@raspberrypi:~$ sudo ot-ctl state [sudo] password for ubuntu: connect session failed: No such file or directory ubuntu@raspberrypi:~$
ubuntu@raspberrypi:~$ sudo systemctl status ● raspberrypi State: running Jobs: 0 queued Failed: 0 units Since: Mon 2023-03-20 22:35:45 CST; 3 months 13 days ago CGroup: / ├─user.slice │ └─user-1000.slice │ ├─user@1000.service … │ │ ├─user.slice │ │ │ └─podman-pause-8178418391264919638.scope │ │ │ └─2852 /usr/bin/podman │ │ ├─app.slice │ │ │ └─dbus.service │ │ │ └─2973 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only │ │ └─init.scope │ │ ├─2791 /lib/systemd/systemd --user │ │ └─2792 (sd-pam) │ └─session-1.scope │ ├─2787 sshd: ubuntu [priv] │ ├─2948 sshd: ubuntu@pts/0 │ ├─2949 -bash │ ├─3668 sudo systemctl status │ ├─3669 sudo systemctl status │ ├─3670 systemctl status │ └─3671 less ├─init.scope │ └─1 /sbin/init fixrtc splash └─system.slice ├─irqbalance.service │ └─715 /usr/sbin/irqbalance --foreground ├─containerd.service … │ └─974 /usr/bin/containerd ├─systemd-networkd.service │ └─698 /lib/systemd/systemd-networkd ├─systemd-udevd.service │ └─444 /lib/systemd/systemd-udevd ├─cron.service │ └─943 /usr/sbin/cron -f -P ├─system-serial\x2dgetty.slice │ └─serial-getty@ttyS0.service │ └─1010 /sbin/agetty -o -p -- \u --keep-baud 115200,57600,38400,9600 ttyS0 vt220 ├─otbr-web.service │ └─1142 /usr/sbin/otbr-web ├─networkd-dispatcher.service │ └─717 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers ├─bluetooth.service │ └─988 /usr/lib/bluetooth/bluetoothd ├─multipathd.service │ └─430 /sbin/multipathd -d -s ├─systemd-journald.service │ └─400 /lib/systemd/systemd-journald ├─unattended-upgrades.service │ └─969 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal ├─ssh.service
边框路由提示:
1 raspberrypi otbr-agent: [NOTE]-AGENT---: Backbone interface: eth0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [NOTE]-AGENT---: Running 0.3.0-thread-reference-20230119-238-ga611a780d0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [NOTE]-AGENT---: Thread version: 1.3.0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [NOTE]-AGENT---: Thread interface: wpan0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [NOTE]-AGENT---: Radio URL: spinel+hdlc+uart:///dev/ttyACM0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [NOTE]-AGENT---: Radio URL: trel://eth0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [NOTE]-ILS-----: Infra link selected: eth0 Jul 3 14:41:21 raspberrypi otbr-agent[2419]: [INFO]-NCP-----: OpenThread log level changed to 4 Jul 3 14:41:23 raspberrypi otbr-agent[2419]: 49d.17:33:38.807 [W] Platform------: Wait for response timeout Jul 3 14:41:23 raspberrypi otbr-agent[2419]: 49d.17:33:38.808 [I] Platform------: Software reset RCP successfully Jul 3 14:41:25 raspberrypi otbr-agent[2419]: 49d.17:33:40.810 [W] Platform------: Wait for response timeout Jul 3 14:41:25 raspberrypi otbr-agent[2419]: 49d.17:33:40.810 [C] Platform------: Failed to communicate with RCP - no response from RCP during initialization Jul 3 14:41:25 raspberrypi otbr-agent[2419]: 49d.17:33:40.810 [C] Platform------: This is not a bug and typically due a config error (wrong URL parameters) or bad RCP image: Jul 3 14:41:25 raspberrypi otbr-agent[2419]: 49d.17:33:40.810 [C] Platform------: - Make sure RCP is running the correct firmware Jul 3 14:41:25 raspberrypi otbr-agent[2419]: 49d.17:33:40.810 [C] Platform------: - Double check the config parameters passed as `RadioURL` input Jul 3 14:41:25 raspberrypi otbr-agent[2419]: 49d.17:33:40.810 [C] Platform------: HandleRcpTimeout() at radio_spinel_impl.hpp:2051: RadioSpinelNoResponse Jul 3 14:41:25 raspberrypi systemd[1]: otbr-agent.service: Main process exited, code=exited, status=6/NOTCONFIGURED Jul 3 14:41:25 raspberrypi systemd[1]: otbr-agent.service: Failed with result 'exit-code'. Jul 3 14:41:30 raspberrypi systemd[1]: otbr-agent.service: Scheduled restart job, restart counter is at 84.
您能检查一下这个案例吗? 谢谢。
谢谢。此致、
尼克