How debug CHIP core with Arduino Nano Matter #95
-
Hello, I have an Arduino Nano Matter board that was working fine at the beginning. I completed commissioning, loaded several examples, and erased the nvm3 with Home Assistant. But now, I'm completely stuck because commissioning works fine, but the device always appears offline on the Home Assistant side, with the error: "CASESession timed out while waiting for a response from the peer. Current state was 4." However, I can ping the device so Thread Network seems correct. I have other Matter/Thread devices that continue to work normally. I suspect an issue on the Arduino Nano Matter side. So my question is: how can we enable Chip logs in the Serial console or through another method? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @sebmalissard, Launch a server: Telnet into it: Enjoy the RTT output:
|
Beta Was this translation helpful? Give feedback.
Hey @sebmalissard,
You can get RTT output from the Nano Matter with OpenOCD.
Launch a server:
/Users/bozont/Library/Arduino15/packages/SiliconLabs/tools/openocd/0.12.0-arduino1-static/bin/openocd -s /Users/bozont/Library/Arduino15/packages/SiliconLabs/tools/openocd/0.12.0-arduino1-static/share/openocd/scripts/ -f interface/cmsis-dap.cfg -f target/efm32s2_g23.cfg -c "init; rtt setup 0x20000000 0x40000 \"SEGGER RTT\"; rtt start; rtt server start 9090 0"
(change the core path according to your OS)
Telnet into it:
telnet 127.0.0.1 9090
Enjoy the RTT output: