diff --git a/Makefile.include b/Makefile.include index 1cd4c84197..94c75c4fa5 100644 --- a/Makefile.include +++ b/Makefile.include @@ -658,7 +658,7 @@ term: $(TERMDEPS) $(TERMPROG) $(TERMFLAGS) # Term without the pyterm added logging -# TERMFLAGS must be exported for `jlink.sh term_rtt`. +# PYTERMFLAGS must be exported for `jlink.sh term-rtt`. cleanterm: export PYTERMFLAGS += --noprefix --no-repeat-command-on-empty-line cleanterm: $(TERMDEPS) $(call check_cmd,$(TERMPROG),Terminal program) diff --git a/boards/hamilton/Makefile.include b/boards/hamilton/Makefile.include index c88822cb9d..5e5da486c9 100644 --- a/boards/hamilton/Makefile.include +++ b/boards/hamilton/Makefile.include @@ -5,7 +5,7 @@ OFLAGS := --gap-fill 0xff # Configure terminal, hamilton doesn't provide any UART, thus use RTT TERMPROG = $(RIOTTOOLS)/jlink/jlink.sh -TERMFLAGS = term_rtt +TERMFLAGS = term-rtt USEMODULE += stdio_rtt diff --git a/boards/ruuvitag/Makefile.include b/boards/ruuvitag/Makefile.include index 3eae148e81..eff65c33fe 100644 --- a/boards/ruuvitag/Makefile.include +++ b/boards/ruuvitag/Makefile.include @@ -1,7 +1,7 @@ # for this board, we are using Segger's RTT as default terminal interface USEMODULE += stdio_rtt TERMPROG = $(RIOTTOOLS)/jlink/jlink.sh -TERMFLAGS = term_rtt +TERMFLAGS = term-rtt # use shared Makefile.include include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include diff --git a/boards/thingy52/Makefile.include b/boards/thingy52/Makefile.include index 61e16f2acc..8d7bb8eeeb 100644 --- a/boards/thingy52/Makefile.include +++ b/boards/thingy52/Makefile.include @@ -1,7 +1,7 @@ # for this board, we are using Segger's RTT as default terminal interface USEMODULE += stdio_rtt TERMPROG = $(RIOTTOOLS)/jlink/jlink.sh -TERMFLAGS = term_rtt +TERMFLAGS = term-rtt # use shared Makefile.include include $(RIOTBOARD)/common/nrf52/Makefile.include diff --git a/dist/tools/jlink/jlink.sh b/dist/tools/jlink/jlink.sh index 03edba36e3..9fff44df0e 100755 --- a/dist/tools/jlink/jlink.sh +++ b/dist/tools/jlink/jlink.sh @@ -50,6 +50,9 @@ # reset: triggers a hardware reset of the target board # # +# term-rtt: opens a serial terminal using jlink RTT(reak time transfer) +# +# # @author Hauke Peteresen # Set IMAGE_OFFSET to zero by default. @@ -286,12 +289,12 @@ case "${ACTION}" in echo "### Resetting Target ###" do_reset "$@" ;; - term_rtt) + term-rtt) echo "### Starting RTT terminal ###" do_term ;; *) - echo "Usage: $0 {flash|debug|debug-server|reset}" + echo "Usage: $0 {flash|debug|debug-server|reset|term-rtt}" echo " flash " echo " debug " ;;