1
0
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:
Francisco Molina 2020-11-13 12:36:30 +01:00
parent 808c5b7eb8
commit 914912b276
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -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"