You are not logged in.
Pages: 1
I'm using arduino to program an Attiny 2313, I installed all that I needed, the Arduino package, the tiny library for arduino and avr-gcc, but, when I'm going to check the code it says
exec: "{compiler.path}avr-g++": executable file not found in $PATHWhat is the path of the "executable file" that I have to add to de $PATH
Note: I'm using Arduino as a root user.
Last edited by daviddavo (2016-07-29 20:32:33)
Offline
It says what? That is a link to a 8 year old forum discussion for an issue that doesn't look remotely similar to what's in your title or the rest of your post.
Mod note: Not an Apps & DE's issue. Moved to N.C.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
It says what? That is a link to a 8 year old forum discussion for an issue that doesn't look remotely similar to what's in your title or the rest of your post.
Mod note: Not an Apps & DE's issue. Moved to N.C.
Sorry, bad copypaste
Offline
That's a little better. But it still is completely out of context. You say "it" says that when you "check the code". I have no idea what this means. What is the "it"? What do you mean by "check the code"? Are you trying to compile something, or run something? Post the command and full output.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Like I said, is from Arduino. It has an option that is "verify code". You use it before compiling and uploading it to the board. The error is with any script. But, if you are interested, that's the code:
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}And the full error:
Arduino:1.6.10 (Linux), Tarjeta:"ATtiny2313 @ 1 MHz"
/usr/share/arduino/arduino-builder -dump-prefs -logger=machine -hardware "/usr/share/arduino/hardware" -hardware "/home/davo/Arduino/hardware" -tools "/usr/share/arduino/tools-builder" -tools "/usr/share/arduino/hardware/tools/avr" -built-in-libraries "/usr/share/arduino/libraries" -libraries "/home/davo/Arduino/libraries" -fqbn=tiny:avr:attiny2313at1 -vid-pid=0X2A03_0X0043 -ide-version=10610 -build-path "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/tmp/arduino_modified_sketch_16814/Blink.ino"
/usr/share/arduino/arduino-builder -compile -logger=machine -hardware "/usr/share/arduino/hardware" -hardware "/home/davo/Arduino/hardware" -tools "/usr/share/arduino/tools-builder" -tools "/usr/share/arduino/hardware/tools/avr" -built-in-libraries "/usr/share/arduino/libraries" -libraries "/home/davo/Arduino/libraries" -fqbn=tiny:avr:attiny2313at1 -vid-pid=0X2A03_0X0043 -ide-version=10610 -build-path "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/tmp/arduino_modified_sketch_16814/Blink.ino"
Using board 'attiny2313at1' from platform in folder: /home/davo/Arduino/hardware/tiny/avr
Using core 'tiny' from platform in folder: /home/davo/Arduino/hardware/tiny/avr
Warning: Board tiny:avr:attiny2313at8 doesn't define a 'build.board' preference. Auto-set to: AVR_ATTINY2313AT8
Warning: Board tiny:avr:attiny2313at1 doesn't define a 'build.board' preference. Auto-set to: AVR_ATTINY2313AT1
Detecting libraries used...
"avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -w -x c++ -E -CC -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
"avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -w -x c++ -E -CC -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -w -x c++ -E -CC -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/usr/share/arduino/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
Compilando programa...
"{compiler.path}avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp.o"
exec: "{compiler.path}avr-g++": executable file not found in $PATH
Error compilación en tarjeta ATtiny2313 @ 1 MHz.Last edited by daviddavo (2016-07-30 13:19:58)
Offline
Ah, the $PATH variable
[davo@Davo-Arch10 ~]$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perlOffline
It's looking for "{compiler.path}avr-g++", not "avr-g++". Faulty build file.
Offline
It's looking for "{compiler.path}avr-g++", not "avr-g++". Faulty build file.
And what can I do to make it work?
Offline
I don't think the arduino package comes with Attiny 2313 support by default, did you install something else to get that support?
It has an option that is "verify code". You use it before compiling and uploading it to the board.
actually, "verify code" is compiling the code.
Offline
I don't think the arduino package comes with Attiny 2313 support by default, did you install something else to get that support?
It has an option that is "verify code". You use it before compiling and uploading it to the board.
actually, "verify code" is compiling the code.
Yep, I installed that from Google Code http://code.google.com/p/arduino-tiny/
Is just downloading a .zip, uncompress it in the Arduino projects folder, uncomment a few lines and install the gcc compiler from pacman. But i guess i'm missing something
Offline
Pages: 1