Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 249 forks source link

New-Stino can't reach avrdude.conf / path problem #189

Closed tionebrr closed 9 years ago

tionebrr commented 9 years ago

Hello,

Can't upload on ubuntu 14.04. Problem seems easy to fix but I can't find where the path to avrdude.conf is defined.

Stino output:

[.....]
Ports {['/dev/ttyACM0']}/{['/dev/ttyACM0']} => {[]}
Uploading using selected port: /dev/ttyACM0.
avrdude: can't open config file "/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file "/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf"

avrdude.conf location

~$ locate avrdude.conf
/etc/avrdude.conf
/usr/share/arduino/hardware/tools/avrdude.conf

Update: I fixed the problem in my installation by modifying the path in preset/platform_avr.txt

gonzoid commented 9 years ago

Back in master branch, avrdude bin & conf paths were defined differently for linux:

tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
tools.avrdude.cmd.path.linux={runtime.ide.path}/hardware/tools/avrdude
tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avrdude.conf
Robot-Will commented 9 years ago

Thanks. I copied this file from Arduino 1.5.8, and it is different from the file of Arduino 1.5.2. I added two lines to preset/platform_avr.txt, and now it works.

wathmal commented 9 years ago

or copy the missing file to the not found folder! cd /usr/share/arduino/hardware/tools/avr mkdir etc cp /etc/avrdude.conf .

albuckley commented 9 years ago

All of the advice here leads to a rabbit hole of insanity and chaos vortexes. Arduino IDE 1.6.5 Sublime Text 3

This is the solution->

This fix is required:

On Debian/Ubuntu systems you need only to add this 2 lines to the file:

~/.config/sublime-text-3/Packages/Stino/stino/pyarduino/arduino_target_params.py

at line 323

target_tools_avrdude_path = os.path.join(ide_path, 'hardware/tools/avr')

and this at 332 of same file

params['runtime.tools.avrdude.path'] = target_tools_avrdude_path

Solution copied from: https://github.com/Robot-Will/Stino/issues/258

MarcelRobitaille commented 8 years ago

@wathmal Thanks, worked for me! :D