mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 08:21:18 +01:00
dist/tools/jlink: add -nogui to version test
If multiple debuggers are present when testing for JLinkExe version a GUI will open to select the debugger to attach, so add -nogui when testing for version as well.
This commit is contained in:
parent
808c5b7eb8
commit
914912b276
4
dist/tools/jlink/jlink.sh
vendored
4
dist/tools/jlink/jlink.sh
vendored
@ -157,7 +157,9 @@ test_term() {
|
||||
|
||||
test_version() {
|
||||
JLINK_MINIMUM_VERSION="6.74"
|
||||
JLINK_VERSION=$(echo q | "$JLINK" 2> /dev/null | grep "^DLL version*" | grep -oP "\d+\.\d+")
|
||||
# Adding '-nogui 1' will simply return 'Unknown command line option -nogui'
|
||||
# on older versions, JLINK_VERSION will still be parsed correctly.
|
||||
JLINK_VERSION=$(echo q | "${JLINK}" -nogui 1 2> /dev/null | grep "^DLL version*" | grep -oP "\d+\.\d+")
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: J-Link appears not to be installed on your PATH"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user