This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to enable RTT shell in Matter example?

Hi,

I built the lighting-app(Link) and run on nrf52840 DK.
Then, I tried to replace the serial shell console with RTT shell console.

I append the configs below to the prj.conf to enable RTT shell:

#enable rtt shell
CONFIG_UART_CONSOLE=n
CONFIG_SHELL_BACKEND_SERIAL=n

CONFIG_RTT_CONSOLE=y
CONFIG_RTT_TX_RETRY_CNT=2
CONFIG_RTT_TX_RETRY_DELAY_MS=2

CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SHELL_PROMPT_RTT="rtt:~$ "
CONFIG_SHELL_RTT_RX_POLL_PERIOD=10
CONFIG_SHELL_BACKEND_RTT_LOG_MESSAGE_QUEUE_TIMEOUT=100
CONFIG_SHELL_BACKEND_RTT_LOG_MESSAGE_QUEUE_SIZE=10
CONFIG_SHELL_RTT_INIT_LOG_LEVEL_INF=y


I run JLinkRTTLogger on PC to connect RTT console:

JLinkRTTLogger -Device NRF52840_XXAA -RTTChannel 1 -if SWD -Speed 4000 ~/rtt.log



The result is the device keep rebooting:

*** Booting Zephyr OS build v2.6.0-rc1-ncs1-3-g0944459b5b62  ***
I: Init CHIP stack
I: 201 [DL]BLE address was set to D2:A5:46:F4:AB:CF
I: SoftDevice Controller build revision:
I: 58 5d 8b 31 54 67 00 e9 |X].1Tg..
I: b8 4a a7 df a9 9c e4 1c |.J......
I: b3 0b ce 74             |...t    
I: Starting CHIP task
I: Init Thread stack
I: 209 [DL]OpenThread started: OK
I: 209 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 209 [ZCL]Using ZAP configuration...
I: 214 [ZCL]deactivate report event
I: 214 [ZCL]OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table.
D: 215 [DIS]Set the fabric pairing table delegate
I: 215 [ZCL]OpCreds: Call to writeFabricsIntoFabricsListAttribute
I: 215 [ZCL]OpCreds: Stored 0 fabrics in fabrics list attribute.
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttrA9    A9    T� @��A9    � ^9    �A9    �9    ^9    �A9    A9    �� @��A9    T� ^9    �A9    �9    ^9    �A9    A9    Ĉ @��A9    �� ^9    �A9    �9    ^9    �A9    A9    �� @��A9    Ĉ ^9    �A9    �9    ^9    �A9    A9    4� @��I: nRF5 802154 radio initialized
I: 8 Sectors of 4096 bytes
I: alloc wra: 0, ff0
I: data wra: 0, 0
*** Booting Zephyr OS build v2.6.0-rc1-ncs1-3-g0944459b5b62  ***
I: Init CHIP stack
I: 201 [DL]BLE address was set to EE:AA:A3:AE:FD:42
I: SoftDevice Controller build revision:
I: 58 5d 8b 31 54 67 00 e9 |X].1Tg..
I: b8 4a a7 df a9 9c e4 1c |.J......
I: b3 0b ce 74             |...t    
I: Starting CHIP task
I: Init Thread stack
I: 209 [DL]OpenThread started: OK
I: 209 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 209 [ZCL]Using ZAP configuration...
I: 214 [ZCL]deactivate report event
I: 214 [ZCL]OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table.
D: 215 [DIS]Set the fabric pairing table delegate
I: 215 [ZCL]OpCreds: Call to writeFabricsIntoFabricsListAttribute
I: 215 [ZCL]OpCreds: Stored 0 fabrics in fabrics list attribute.
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttributePath is not interested
D: 217 [DMG]AttrA9    A9    T� @��A9    � ^9    �A9    �9    ^9    �A9    A9    �� @��A9    T� ^9    �I: nRF5 802154 radio initialized
I: 8 Sectors of 4096 bytes
I: alloc wra: 0, ff0
I: data wra: 0, 0
*** Booting Zephyr OS build v2.6.0-rc1-ncs1-3-g0944459b5b62  ***
I: Init CHIP stack
I: 201 [DL]BLE address was set to CE:25:43:84:35:70
I: SoftDevice Controller build revision:
I: 58 5d 8b 31 54 67 00 e9 |X].1Tg..
I: b8 4a a7 df a9 9c e4 1c |.J......
I: b3 0b ce 74             |...t    
I: Starting CHIP task
I: Init Thread stack
I: 209 [DL]OpenThread started: OK
I: 209 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 209 [ZCL]Using ZAP configuration...
I: 214 [ZCL]deactivate report event
I: 214 [ZCL]OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table.
D: 215 [DIS]Set the fabric pairing table delegate
I: 215 [ZCL]OpCreds: Call to writeFabricsIntoFabricsListAttribute
I: 215 [ZCL]OpCreds: Stored 0 fabrics in fabrics list attribute.
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttributePath is not interested
D: 216 [DMG]AttributePath is not interested
D: 217 [DMG]AD�A9    A9    T� @��A9    � ^9    �A9    �9    ^9    �A9    A9    �� @��A9    T� ^9    �A9    �9    ^9    �A9    A9    Ĉ @��A9    �� ^9    �A9    �9    ^9    �A9    A9    �� @��A9    Ĉ ^9    �A9    �9    ^9    �A9    A9    4� @��A9    �� ^9    �A9    �9    ^9    �A9    A9    l� @��A9    4� ^9    �A9    �9    ^9    �A9    A9    �� @^C




Could you give me some suggestion about this issue?

thanks,
Jacob

Related