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

No programmer has been specified on the command line or the config file #346

Closed
PabloVallejo opened this issue May 25, 2016 · 18 comments
Closed

Comments

@PabloVallejo
Copy link

Hi,

Great plugin, I've installed and specified the arduino port, however when I try to upload the project I get the following error:

[Stino - Start uploading...]

avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again


[Stino - Exit with error code 1.]

Thanks on any advice!

Setup:

  • Sublime Text 3
  • Arduino Uno
@eliasu
Copy link

eliasu commented Jun 2, 2016

*PUSH

… same here. Why?
And maybe its important: I don't have any files in my /documents/Arduino/hardware folder …

@karthikkeyan
Copy link

karthikkeyan commented Jun 5, 2016

Hi,
I dont know the actual solution, i just want to share what i did to upload my sketch successfully, it might help some one to fine the actual solution.

So I tried to upload the my sketch using my sublime text from Arduino -> Upload menu. It failed with the same error message as mentioned above. I looked into the sublime console and i got the below command which was trying to upload my sketch file.

"/Applications/Arduino.app/Contents/Java/hardware\tools\avr/bin/avrdude" "-C/Applications/Arduino.app/Contents/Java/hardware\tools\avr/etc/avrdude.conf" -v {upload.verify} -patmega328p -carduino "-P/dev/tty.usbmodem1411" -b115200 -D "-Uflash:w:/tmp/Stino_build/blink/blink.hex:i"

Workaround
I opened my terminal
Navigate to cd /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin
Ran the same command with two changes, and it worked.

./avrdude "-C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf" -v  -patmega328p -carduino "-P/dev/tty.usbmodem1411" -b115200 -D "-Uflash:w:/tmp/Stino_build/blink/blink.hex:i"

Changes:

  1. It seems the path to the avrdude.conf file have backslash(\) instead of front-slash(/). i changed the path with front-slash(/).
  2. Also i removed {upload.verify} from the command.

These two changes made the command work perfectly.

Note: Im using OS X.

@jshaw
Copy link

jshaw commented Jun 12, 2016

I'm running into the same issue. It worked for me about an hour ago and now I'm getting the message.. I haven't made and drastic changes to my system or anything that I know of.

I'm using Sublime Text 3 and originally the Arduino IDE v1.6.8. With v1.6.8 I was also having the error using the official Arduino IDE + Stino. I upgraded the IDE from v1.6.8 to v1.6.9 and it allowed me to upload again through the IDE but still I'm running into issues with Stino.

About to try the above solution....

Update: Confirmed, using the command @karthikkeyan posted above (obviously updating for my usbmodem#) worked for me...

@hoonkai
Copy link

hoonkai commented Jun 14, 2016

I'm running into the same problem. @karthikkeyan's command indeed works, but I'm hoping to get the upload working inside Sublime.

@dgroo
Copy link

dgroo commented Jun 17, 2016

Same issue here.

@dnnssgl
Copy link

dnnssgl commented Jun 26, 2016

Same here. Tried older versions of Arduino IDE and it seems that 1.6.3 is working fine on MacOS 10.11.5 with Sublime Text 3114.

@hnnswldschtz
Copy link

found at least a workaround!
open plattforms.txt in Arduino.app/Contents/Java/hardware/arduino/avr/
in line 106 erase this: {upload.verify}
i can't tell whats the downside so far, but stino and the arduino app itself seems to work fine...
Compared 1.6.7.to 1.6.9., this was added in a newer version.

@moe93
Copy link

moe93 commented Jul 23, 2016

The workaround @hnnswldschtz provided works like a charm.

@Grisson
Copy link

Grisson commented Jul 24, 2016

The fix @hnnswldschtz provided works like a charm.
Another tip is that using /dev/tty.* serial port rather than /dev/cu.* port. (in mac)

@mlohbihler
Copy link

For me the problem was the version of Arduino AVR Boards. After installing version 1.6.12 i started getting this error. I reverted to 1.6.11 and the error went away. Tools -> Boards -> Boards Manager. Click on Arduino AVR Boards, "select version", and install.

@clempat
Copy link

clempat commented Aug 10, 2016

@mlohbihler I needed to revert to 1.6.10 to make it works !

@AbeMont
Copy link

AbeMont commented Aug 12, 2016

@clempat Also reverted back to 1.6.10. It also worked for me.

@alexandertmills
Copy link

I've tried removing "{upload.verify}" and I've tried reverting to the 6 most recent Arduino AVR Board versions. Still no luck. Program works fine in Arduino IDE, still can't upload through Stino. Suggestions?

@gepd
Copy link
Collaborator

gepd commented Aug 27, 2016

please read this: #331

@derjohng
Copy link

derjohng commented Sep 7, 2016

Remove "{upload.verify}" on line 101 of 1.6.11 work for me.
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/platform.txt

@Muzz0
Copy link

Muzz0 commented Nov 15, 2016

@hnnswldschtz, I think I love you. Works great.

@krishna9830
Copy link

Go to the arduino menu in sublime, then to board and select your correct board, work for me

@Robot-Will
Copy link
Owner

Try follow the dev version Stino2017.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests