Skip to content

Conversation

@carlescufi
Copy link
Contributor

… runner is used

The logic to detect the default JLink location was placed at the top of
the script, executing whenever the script was imported. The west
extension command framework loads all runners when initializing, and so
this logic was being executed even when using another runner.

Move the logic to a function that is only executed when the JLink runner
is selected, to avoid executing it at all times.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 4c12a8c)
…cutable

Instead of hardcoding a set of paths and trying to find the JLink
executable in them, use the corresponding Windows registry to locate it:

`HKEY_CURRENT_USER\\Software\\SEGGER\\J-Link`

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit bb1794b)
@sonarqubecloud
Copy link

@carlescufi carlescufi merged commit a2aa12b into nrfconnect:main Mar 20, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants