Navigation Menu

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

Don't check for port presence for "upload using programmer" unless it's used. #2083

Closed
damellis opened this issue May 20, 2014 · 4 comments
Closed
Assignees
Labels
Component: IDE The Arduino IDE Type: Duplicate Another item already exists for this topic

Comments

@damellis
Copy link
Contributor

Some programmers (e.g. the USBtiny) don't use a serial port (or network port) but upload via native USB communication. If you do an "upload using programmer", this will cause a problem because Sketch.upload() always checks for the presence of the currently selected port, even if it's not needed for the upload to work. (This isn't a problem when burning the boot loader, because there's no explicit check for the presence of the serial port.)

I tried with 1.5.6 and the ide-1.5.x branch, on Mac OS X (10.9.2).

BTW, this bug is a problem for me because it breaks uploading to the ATtiny using the Tiny AVR Programmer. I'm not using a boot loader, so upload using programmer is the only way to get a sketch onto the microcontroller.

@matthijskooijman
Copy link
Collaborator

I ran into this problem with my JTAGICE3 as well.

Seems like we could use the communication attribute from programmers.txt to detect this case:

avrisp.communication=serial
usbasp.communication=usb

@Lauszus
Copy link
Contributor

Lauszus commented May 20, 2014

Please also see: #1791.

@matthijskooijman
Copy link
Collaborator

Ah, this issue is a complete duplicate of that one, so this issue should probably be closed.

@damellis
Copy link
Contributor Author

Okay, closing as a duplicate of #1791.

@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

5 participants