help to start

Hi, I add a led and is flashing by itself? then I wrote this:

void setup() { // put your setup code here, to run once: pinMode(13,OUTPUT); }

void loop() { // put your main code here, to run repeatedly: digitalWrite(13,HIGH); delay(5000); }

my config is : Arduino: 1.6.6 (Mac OS X), Board: "Arduino/Genuino Uno"

when I'm downlowd I have those error:

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware

"/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/xavi/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools

"/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/xavi/Library/Arduino15/packages" -built-in-libraries

"/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/xavi/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -vid-pid=0X2A03_0X0043 -ide-version=10606 -build-path "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "/Users/xavi/Documents/Arduino/helloworld/helloworld.ino" /Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/xavi/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/xavi/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/xavi/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -vid-pid=0X2A03_0X0043 -ide-version=10606 -build-path "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "/Users/xavi/Documents/Arduino/helloworld/helloworld.ino" "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" -o "" avr-g++: error: missing filename after '-o' exit status 1 Error compiling.

Thanks

Try 1.6.5r5 - 1.6.6 is a very bad version to be using. It had loads of build process bugs (not all of which are fixed as far as I know, hence why I recommend 1.6.5r5.

The error is caused by using Arduino AVR Boards 1.6.10 with Arduino IDE 1.6.6, they are incompatible. The solution is to either:

  • Upgrade to Arduino IDE 1.6.7 or 1.6.8
  • Install Arduino AVR Boards 1.6.9 using Boards Manager(Tools > Board > Boards Manager... > Arduino AVR Boards(click on it) > Select version > 1.6.9 > Install) - I've had problems reinstalling the previous Arduino AVR Boards version with Boards Manager so you may have to reinstall the Arduino IDE if you can't compile after going back to Arduino AVR Boards 1.6.9.

If you're using Windows then you can fix the problem by installing Arduino IDE 1.6.5r5 as DrAzzy said but with other OSs this might cause another problem because Arduino AVR Boards 1.6.10 is also incompatible with Arduino IDE 1.6.5r5 and that boards package will still be installed.

Thanks, it works now. I installed the last version.