-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards:mega2560: add debug and debug-server targets #1696
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
I guess it's fine, cant test, reassigning to @haukepetersen because he invented the debugserver and mentioning @thomaseichinger because he implemented it for another board ;) |
I've just found an issue myself. I'll push a fix later. |
058c97f
to
762f115
Compare
The problem was that using |
OT: Can you check whether this problem might exists with other implementors as well? |
@LudwigOrtmann: Due to lack of hardware I can't really check it. By looking at the make files and scripts I guess that the implementation of the debug target of the Unrelated to that Travis bailed out again... 👎 |
Yeah, that's what I meant by looking .. Thank you! |
Kicked the baby! |
One kick and Travis is happy again... |
You're happy with this PR now, right? |
It works for me and does what I wanted it to do. So yes: if noone else has any objections - I'm happy... |
|
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.
How can this be overridden?
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.
see general comment - sorry...
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.
PROGRAMMER sounds better, yes, but I think the =
should be a ?=
then, right?
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.
Also, I'd split out the stk500v2
into PROGRAMMER
and put the rest into FFLAGS
.. ?
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.
.. or PROGRAMMERFLAGS
if they are independent.
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.
Anyways - I guess conditional assignments should be preferred if this enables setting the variable in another (e.g. application) Makefile.
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.
So you think I should use conditional assignments for PROGRAMMER
(?=
)?
Does it make sense to make an application setting the used programmer?
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.
Kind of.
It might be unusual but I've used similar exports sometimes to save having to set up the build environment. Either way I don't see any benefit to unconditionally setting it in this case.
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.
Hm, maybe an example:
I have two devices to flash - node and gateway.
Now, I set PROGRAMMEFLAGS to use device A for the gateway at all times and to use device B for the node at all times. That way, I can have both devices attached at the same time and make sure the correct application is deployed.
This is probably not a Makefile that will be part of RIOT, but very handy for me as a developer.
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.
(Note: conditionally setting not only the PROGRAMMER variable here..)
At the command line: |
@LudwigOrtmann: it works this way - and it's a little bit more consistent. What do you think? |
7c5e305
to
9770530
Compare
I've squashed the changes. |
With the exception of the |
9770530
to
17fe3f4
Compare
Ok - I've changed the |
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 too?
Compare #1696 (comment)
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.
Since PORT can be (and has to be) overridden anyways if two different boards should be flashed via one Makefile I think, this shouldn't be necessary. I can change it anyways though, if you consider it better...
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.
Oh, you're right, I wasn't looking closely. Pardon!
ACK & go |
boards:mega2560: add debug and debug-server targets
This PR adds the make tagets
debug
anddebug-server
to the Arduino Mega 2560.Tested in conjunction with the AVR Dragon board as ISP/OCD tool.