Skip to content
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

Add programmer to the sketch profile #2487

Closed
3 tasks done
dankeboy36 opened this issue Jan 3, 2024 · 0 comments · Fixed by #2505
Closed
3 tasks done

Add programmer to the sketch profile #2487

dankeboy36 opened this issue Jan 3, 2024 · 0 comments · Fixed by #2505
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@dankeboy36
Copy link
Contributor

Describe the request

Include programmer in the sketch project file (aka sketch.yaml).

Getting the debug information (via debug --info) requires the fqbn and the programmer.

The FQBN and all custom board options are "encoded" in the fqbn property of the profile, but there is no way to store the programmer. If the port, protocol, fqbn, etc., can have a default, maybe adding a slot for the programmer could also make sense.

Assume this profile:

profiles:
  nanorp:
    fqbn: arduino:mbed_nano:nanorp2040connect
    programmer: p1
    platforms:
      - platform: arduino:mbed_nano (2.1.0)

default_profile: nanorp

Running arduino-cli debug --info --profile nanorp would implicitly run arduino-cli debug --info --fqbn arduino:mbed_nano:nanorp2040connect --programmer p1.

Describe the current behavior

There is no way to store the programmer in the sketch profile. This will be a problem in Arduino IDE when people want to opt in and start storing the FQBN + the custom board options in a file and sharing it with others.

Arduino CLI version

0.35

Operating system

N/A

Operating system version

n/a

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details
@dankeboy36 dankeboy36 added the type: enhancement Proposed improvement label Jan 3, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Jan 3, 2024
@cmaglie cmaglie added the conclusion: resolved Issue was resolved label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
4 participants