-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Custom menu selections are unable to change upload parameters #2323
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
Comments
For reference, I also wanted to add that I'm using version 1.5.7. |
It seems that what you're trying should be supported. For example, looking at the board definition for the Diecimilla, which supports two CPU types which also use different uploader speeds. Compare https://github.com/arduino/Arduino/blob/ide-1.5.x/hardware/arduino/avr/boards.txt#L93 and https://github.com/arduino/Arduino/blob/ide-1.5.x/hardware/arduino/avr/boards.txt#L99 with In platform.txt, these Your boards.txt lines look ok to me. Perhaps the underscores or mixed casing is causing a problem (just guessing)? I think you have a custom platform.txt too, perhaps the problem is in there? |
Thanks for the fast response :-) Indeed I've been using the Diecimilla entries as a reference, I'll try playing with the casing and underscores to see if that makes any difference. Here's my platform.txt file:
|
And programmers.txt is:
|
Hmm, that also looks ok to me... |
Programmers.txt shouldn't be relevant, unless you use the upload using programmer option? |
If I don't, I get the following:
|
Wow... you're a genius. It was the underscores. |
Great! Still, this means a bug - if the IDE doesn't allow underscores, it should say so (or at least not show the board). Showing the board and then not properly supporting menu options or whatever the problem really is isn't really what we'd want... So the next question is - what part of the code was causing this exactly... |
Yep... Actually, from the verbose output, it looks like underscores are used for separaion... for example, one such line during the build reads:
The following now works as expected:
|
the issue should be solved by: #2582 |
Solved with #2582, if this doesn't fix the problem feel free to reopen the issue. |
Hello everyone,
I'm struggling to get certain upload parameters (e.g. upload.protocol) to propagate using custom menu selections in a boards.txt file.
The following line will work correctly when selecting the board:
ProjectGroup.upload.protocol=pgm ...which will correctly set a flag of "-pgm" when calling the defined programming tool.
Conversely, the following will fail when attempting to specify the upload protocol from a menu option:
XtremeG_Single.menu.UploadType.WithCore.upload.protocol=xgsb ... which incorrectly results in "-{upload.protocol}" in the command line instead of "-xgsb" as I would expect.
For broader context, my boards.txt file is as follows:
Is this a bug, or is there something I'm either not doing or understanding correctly?
Thanks,
Bryan
The text was updated successfully, but these errors were encountered: