Skip to content

Commit

Permalink
dsa: config: sample: Add SHELL support via RTT to DSA sample's prj.conf
Browse files Browse the repository at this point in the history
Due to the routing, the ip_k66f board can only use RTT to export
console. With this change the SHELL is enabled to get access
to network commands (like ping).

To use it with RTT from Segger:
-------------------------------

On HOST (terminal 1):
./JLink_V664/JLinkRTTLogger -Device MK66FN2M0XXX18 -RTTChannel 1 \
-if SWD -Speed 4000 ~/rtt.log

On HOST (terminal 2):
nc localhost 19021

(19021 is the port number for the Segger RTT server)

Signed-off-by: Lukasz Majewski <[email protected]>
  • Loading branch information
Lukasz Majewski authored and jukkar committed Jan 20, 2021
1 parent 814f5fa commit 9e5ae8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions samples/net/dsa/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,11 @@ CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.0.1"
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"

CONFIG_ETH_MCUX_PROMISCUOUS_MODE=y

# Add RTT SHELL support -> Instead of LOG_BACKEND_RTT
# Shell can be used to test the DSA operation with e.g.
# 'net ping -I3 192.168.0.1'
CONFIG_SHELL=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SHELL_BACKEND_SERIAL=n
CONFIG_LOG_BACKEND_RTT=n

0 comments on commit 9e5ae8f

Please sign in to comment.