-
Notifications
You must be signed in to change notification settings - Fork 2.1k
makefiles/tools/jlink.inc.mk: DEBUG_ADAPTER_ID as JLINK_SERIAL #12733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change makes sense for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's something missing.
@@ -9,3 +9,5 @@ FFLAGS ?= flash $(FLASHFILE) | |||
DEBUGGER_FLAGS ?= debug $(ELFFILE) | |||
DEBUGSERVER_FLAGS ?= debug-server | |||
RESET_FLAGS ?= reset | |||
|
|||
JLINK_SERIAL ?= $(DEBUG_ADAPTER_ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be exported if it's used in jlink.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting this @aabadie, you are right. I'm thinkking of the best place to export. Will adddress and fix the test procedure.
a4cb297
to
83b800a
Compare
@aabadie I updated the PR description and fixed the testing procedure. |
- export JLINK_SERIAL for required targets
83b800a
to
05782d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Contribution description
This PR uses DEBUG_ADAPTER_ID as the default value for JLINK_SERIAL. This way all
programmers use the same variable.
It also cleans-up the documentation for
jlink.sh
:term_rtt
toterm-rtt
(common target namestyle)term-rtt
documentationTesting procedure
BOARD
, this fails in master:I have 3 jlink devices connected
nrf52dk
,nrf52840dk
,slstk3402a
BOARD=slstk3402a make -C examples/hello-world/ reset
BOARD=nrf52840dk make -C examples/hello-world/ reset
BOARD=nrf52dk make -C examples/hello-world/ reset