Coder Social home page Coder Social logo

platformio / platform-atmelavr Goto Github PK

View Code? Open in Web Editor NEW
133.0 15.0 103.0 451 KB

Atmel AVR: development platform for PlatformIO

Home Page: https://registry.platformio.org/platforms/platformio/atmelavr

License: Apache License 2.0

Python 100.00%
arduino avr platformio atmel-avr iot build firmware platformio-platform

platform-atmelavr's Introduction

Atmel AVR: development platform for PlatformIO

Build Status

Atmel AVR 8- and 32-bit MCUs deliver a unique combination of performance, power efficiency and design flexibility. Optimized to speed time to market-and easily adapt to new ones-they are based on the industrys most code-efficient architecture for C and assembly programming.

  • Home (home page in the PlatformIO Registry)
  • Documentation (advanced usage, packages, boards, frameworks, etc.)

Usage

  1. Install PlatformIO
  2. Create PlatformIO project and configure a platform option in platformio.ini file:

Stable version

[env:stable]
platform = atmelavr
board = ...
...

Development version

[env:development]
platform = https://github.com/platformio/platform-atmelavr.git
board = ...
...

Configuration

Please navigate to documentation.

platform-atmelavr's People

Contributors

arunderwood avatar bgiot avatar bonekost avatar ddlsmurf avatar dvv avatar eerimoq avatar freynder avatar itkovian avatar ivankravets avatar jpecor avatar jrbenito avatar mcudude avatar msquirogac avatar opieters avatar per1234 avatar pfeerick avatar rafacouto avatar robsonos avatar rodmg avatar snake-4 avatar stefan-muc avatar stonehippo avatar svenwiltink avatar thijses avatar thingengineer avatar valeros avatar volca avatar yyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform-atmelavr's Issues

Arduino Leonardo COM port broken after an upload.

Configuration

Operating system: Windows 7 64bit

PlatformIO Version (platformio --version): 3.2.1

Description of problem

Hi !
When uploading code to an arduino leonardo, the normal serial port doesn't re-appears after uploading. Instead, the arduino stays on the bootloader serial port.

Steps to Reproduce

  1. create project for Eclipse IDE: platformio init --ide eclipse --board leonardo
  2. Import project in Eclipse and add main.cpp source code
  3. Upload a first time. It should work, but the serial port is lost. You will see instead "Arduino leonardo bootloader" in the device manager.
  4. Re-upload. It will fail.
  5. You can unbrick the board by uploading a sketch using Arduino IDE(1.8.1). (set the port corresponding to Arduino leonardo bootloader). The normal serial port re-appears (Arduino Leonardo).

Actual Results

After an upload, the serial COM present is the bootloader, not the normal COM port. The uploaded code is running (blink demo code, tested with several delay). But the Serial communication doesn't work, and it's not possible to re-upload using Platformio.

Expected Results

For a normal uploading, the IDE reset the board. The bootloader shows up, the code is uploaded, and then the normal serial port goes on. Here, it doesn't, even after manual reset.

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:leonardo]
platform = atmelavr
board = leonardo
framework = arduino

Source file to reproduce issue:

#include <Arduino.h>
#define WLED	13  // Most Arduino boards already have an LED attached to pin 13 on the board itself

void setup()
{
  pinMode(WLED, OUTPUT);  // set pin as output
  Serial.begin(9600);
}

void loop()
{
  digitalWrite(WLED, HIGH);
  delay(200);
  digitalWrite(WLED, LOW);
  delay(200);
  Serial.println("test");
}

Additional info

This problem looks like #178 , but according to the thread, the issue should have been solved in the 1.5.0 version. I tried with two Leonardo, same result on both.
I also tried on Ubuntu, and it's work, both re-upload and serial port. However, a board uploaded under Ubuntu still bug when connected to windows (same PC). To me it's seem related to a incompatibility issue with the window driver of the board.
What do you think ?

Flash is not erased when uploading hexfile

Using the Platformio IDE integrated in Atom, when performing "Upload" the command line output shows that the "-D" flags is used with the avrdude tool.

This disables auto erase for flash. However, it is essential that the flash is erased before uploading new code into it. I am using a bare Atmega48 (no Arduino). I did not find a way to remove this flag anywhere in the platformio config files..

Arduino Leonardo Uploading Problem (Linux)

OS : Manjaro Kde edition
Board : Arduino Leonardo
IDE : Atom with platformio

tried on both but same result..

PlatformIO, version 3.3.0a11 --- Atom ide version
PlatformIO, version 3.2.1 --- Linux CLI version

Problem

I am trying to use atom-platformio-ide to program my arduino leonardo but there is a problem uploading the code;
the problem is, I can upload the code only once, after that for each trial platformio cant find the board.
the only thing that lets the platformio to upload is upload some sample code from arduino ide, then platformio can upload for once again, but no more.

i did the following to prepare the environment to run properly and there is no permission issue after this.

sudo chmod 666 /dev/ttyACM0
sudo usermod -a -G uucp
sudo usermod -a -G lock

First Run

pio run --target upload --verbose
[Thu Feb 23 14:25:39 2017] Processing leonardo (platform: atmelavr, board: leonardo, framework: arduino)
----------------------------------------------------------------------------------------------------------
Collected 28 compatible libraries
Looking for dependencies...
Project does not have dependencies
BeforeUpload(["upload"], [".pioenvs/leonardo/firmware.hex"])
Auto-detected: /dev/ttyACM0
Forcing reset using 1200bps open/close on port /dev/ttyACM0
Waiting for the new upload port...
avrdude -v -p atmega32u4 -C /home/selcuk/.platformio/packages/tool-avrdude/avrdude.conf -c avr109 -b 57600 -P "/dev/ttyACM0" -D -U flash:w:.pioenvs/leonardo/firmware.hex:i

avrdude: Version 6.3, compiled on Sep 12 2016 at 15:21:49
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/home/selcuk/.platformio/packages/tool-avrdude/avrdude.conf"
User configuration file is "/home/selcuk/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port                    : /dev/ttyACM0
Using Programmer              : avr109
Overriding Baud Rate          : 57600
AVR Part                      : ATmega32U4
Chip Erase delay              : 9000 us
PAGEL                         : PD7                                                                                                                                                                  
BS2                           : PA0                                                                                                                                                                  
RESET disposition             : dedicated                                                                                                                                                            
RETRY pulse                   : SCK                                                                                                                                                                  
serial program mode           : yes                                                                                                                                                                  
parallel program mode         : yes                                                                                                                                                                  
Timeout                       : 200                                                                                                                                                                  
StabDelay                     : 100                                                                                                                                                                  
CmdexeDelay                   : 25                                                                                                                                                                   
SyncLoops                     : 32                                                                                                                                                                   
ByteDelay                     : 0                                                                                                                                                                    
PollIndex                     : 3                                                                                                                                                                    
PollValue                     : 0x53                                                                                                                                                                 
Memory Detail                 :                                                                                                                                                                      
                                                                                                                                                                                                     
Block Poll               Page                       Polled                                                                                                                                           
Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack                                                                                                                    
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------                                                                                                                    
eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00                                                                                                                    
flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00                                                                                                                    
lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00                                                                                                                    
hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00                                                                                                                    
efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00                                                                                                                    
lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00                                                                                                                    
calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00                                                                                                                    
signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00                                                                                                                    
                                                                                                                                                                                                     
Programmer Type : butterfly
Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as CB
avrdude: reading input file ".pioenvs/leonardo/firmware.hex"
avrdude: writing flash (5496 bytes):

Writing | ################################################## | 100% 0.42s

avrdude: 5496 bytes of flash written
avrdude: verifying flash memory against .pioenvs/leonardo/firmware.hex:
avrdude: load data flash data from input file .pioenvs/leonardo/firmware.hex:
avrdude: input file .pioenvs/leonardo/firmware.hex contains 5496 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.04s

avrdude: verifying ...
avrdude: 5496 bytes of flash verified

avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as CB
avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)

avrdude done.  Thank you.

==================================================================================== [SUCCESS] Took 3.91 seconds ====================================================================================

Second Run

pio run --target upload --verbose
[Thu Feb 23 14:28:09 2017] Processing leonardo (platform: atmelavr, board: leonardo, framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Collected 28 compatible libraries
Looking for dependencies...
Project does not have dependencies
BeforeUpload(["upload"], [".pioenvs/leonardo/firmware.hex"])
Auto-detected: /dev/ttyACM0
Forcing reset using 1200bps open/close on port /dev/ttyACM0
Waiting for the new upload port...
avrdude -v -p atmega32u4 -C /home/selcuk/.platformio/packages/tool-avrdude/avrdude.conf -c avr109 -b 57600 -P "/dev/ttyACM0" -D -U flash:w:.pioenvs/leonardo/firmware.hex:i

avrdude: Version 6.3, compiled on Sep 12 2016 at 15:21:49
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/home/selcuk/.platformio/packages/tool-avrdude/avrdude.conf"
User configuration file is "/home/selcuk/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port                    : /dev/ttyACM0
Using Programmer              : avr109
Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "/dev/ttyACM0": Input/output error

avrdude done.  Thank you.

*** [upload] Error 1
===================================================================================== [ERROR] Took 7.74 seconds =====================================================================================

Any help would be appreciated

Additional Notes :

  • Like arduino ide, Arduino Upload Package in Atom editor can upload properly.
  • Arduino Uno can be programmed using platformio properly.
  • I tried Arduino Leonardo with Linux Mint installed different computer, platformio worked properly

Add support for AVR XMEGA

Moved from platformio/platformio-core#481

/cc @knutel, @aethaniel


It would be great to have support for AVR XMEGA, too. There already is a project to make Arduino support at [https://github.com/Xmegaduino/Xmegaduino], so maybe PlatformIO support is not that difficult. I might take a stab at it myself if I get the time.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39567860-add-support-for-avr-xmega?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github).

Hardware debugging with simulavr and avr-gdb on eclipse

Is there a way to use the avr-gcc build attribute -glevel with different level and switch off gcc size optimation for debugging purpose?

I followed this guide: http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio as far as I can with eclipse-cdt neon but avr-gdb throws this errors:

No source file named /home/"username"/workspace-ccpp/"project-dir"/src/main.c.

With loading the platformio builded firmware.elf i cannot follow the code lines which the pc is pointing at, eclipse says "No source available for "main() at 0x27e" "

If I build manually via avr-gcc and -g parameter and use this generated firmware.elf i have no issues at all.

Simulated mcu: ATmega328p
OS: Arch linux
uname -a: Linux *** 4.8.8-2-ARCH #1 SMP PREEMPT Thu Nov 17 14:51:03 CET 2016 x86_64 GNU/Linux

Build for "micro" board fails

Trying to build the blink example for Micro board, Arduino Micro (atmega32u4) fails to compile.
Its trying to include a header file for the pins from a folder that wouldn't exist there.
I tried to debug it a little myself, i've put in leonardo's pin definitions into the file that its looking for but it spat out some more errors: http://pastie.org/pastes/9797760/text?key=yntqzqdbbyytpepq2gdrxg

MacBook-Pro:Tubeclock yarek$ platformio run
Processing arduino_micro environment:
avr-gcc -o .pioenvs/arduino_micro/src/main.o -c -g -Os -ffunction-sections -fdata-sections -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=158 -DARDUINO_AVR_MICRO -DUSB_VID=0x2341 -DUSB_PID=0x8037 "-DUSB_PRODUCT=Arduino Micro" -I.pioenvs/arduino_micro/FrameworkArduino -I.pioenvs/arduino_micro/FrameworkArduinoVariant .pioenvs/arduino_micro/src/main.c
In file included from .pioenvs/arduino_micro/FrameworkArduino/Arduino.h:247:0,
                 from .pioenvs/arduino_micro/src/main.c:1:
.pioenvs/arduino_micro/FrameworkArduinoVariant/pins_arduino.h:25:38: fatal error: ../leonardo/pins_arduino.h: No such file or directory
 #include "../leonardo/pins_arduino.h"
                                      ^
compilation terminated.
scons: *** [.pioenvs/arduino_micro/src/main.o] Error 1

Bug: Upload for Sparkfun Digital Sandbox fails [$15]

Via https://community.platformio.org/t/sparkfun-sandbox-programmer-not-responding/1499

Configuration

Operating system: MacOS 10.11.6

PlatformIO Version (platformio --version): PlatformIO, version 3.2.1 (installed via the platformio Atom download)

Atom Version: Tried 1.14.3 x64 from the platformio Atom download)

Description of problem

Uploading a sketch using the Arduino IDE works fine, but not with platformio via atom nor the command line. avrdude fails to upload the program.

Steps to Reproduce

Plug in the Sparkfun Digital Sandbox board, open the PlatformIO "blink" project.

platformio.ini is:

[env:sparkfun_digitalsandbox]
platform = atmelavr
board = sparkfun_digitalsandbox
framework = arduino
upload_port = /dev/cu.usbserial-A9048KU5

Note: The same problem occurs with the upload_port line commented out.

Press Upload

Actual Results

Program compiles, but during the attempted upload, I see:

[Wed Feb 15 06:45:01 2017] Processing sparkfun_digitalsandbox (platform: atmelavr, upload_port: /dev/cu.usbserial-A9048KU5, board: sparkfun_digitalsandbox, framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 28 compatible libraries
Looking for dependencies...
Project does not have dependencies
Linking .pioenvs/sparkfun_digitalsandbox/firmware.elf
Checking program size
text	   data	    bss	    dec	    hex	filename
928	      0	      9	    937	    3a9	.pioenvs/sparkfun_digitalsandbox/firmware.elf
Building .pioenvs/sparkfun_digitalsandbox/firmware.hex
Looking for upload port...
Use manually specified: /dev/cu.usbserial-A9048KU5
Uploading .pioenvs/sparkfun_digitalsandbox/firmware.hex
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00

The attempts repeat until terminating after 10 failed attempts.


Did you help close this issue? Go claim the $15 bounty on Bountysource.

Verify upload to AtTiny85 fails.

ORIGINALLY RAISED WITH PLATFORMIO. ADVISED TO TAKE IT HERE.

Configuration

Operating system: Linux Mint 18, 64 bit.

PlatformIO Version: IDE=1.6.0, CLI=3.1.0

Description of problem

After upgrading to latest PlatformIO, all my AtTiny85 scripts fail to verify. Each is Arduino compatible, and work fine on the Arduino IDE.

Please refer back to platformio/platformio-core#799 and platformio/platformio-core#800 for the full details.

I upgraded the Atom packages to the latest versions, now I cannot upload to an AtTiny85 using my USBTinyISP programmer any more. If fails at the verify stage of avrdude.

I followed the instaructions for the use of a programmer by visiting http://docs.platformio.org/en/stable/platforms/atmelavr.html#upload-using-programmer and my current platformio.ini is as follows:

The content of platformio.ini:

[env:attiny85]
platform=atmelavr
board=attiny85
framework=arduino
upload_protocol = usbtiny

[platformio]
src_dir=AtTiny85_Blink

After adding the upload_protocol option, exactly the same happens. Same error message - unable to verify after uploading. I'm advised that I need to be using g program rather than upload, but it doesn't seem to change anything. I'm still seeing g, briefly, the words platformio and upload as opposed to program.

With the Arduino IDE, I don't even have to "upload using programmer" to get a valid write and verify, upload works just fine.

With PlatformIO, until I upgraded, I had no problems uploading - as opposed to programming - with the platformio.ini that I originally posted. Only after the upgrade were there any problems. I'm still at the point of being unable to program any of my AtTiny85 chips.

Changing to the advised upload_protocol had no effect. Still fails to verify the upload.

Sorry. :(

Cheers.

Lock To Specific Version

Is there any way to lock a platformio project to a specific atmelavr release? For instance, I have a legacy project that gets updated about once a year, and it's historically had issues moving to new toolchain releases. I'd like to get it working with the current release (well, right now it's working well with 1.3.1) and then lock my environment down so I can stop wasting time chasing toolchain issues when I need to push a release.

I've done something like this in my platformio.ini file:

[env:uno]
platform: [email protected]
framework: arduino
board: uno

This works great on a machine that's set up when 1.3.1 was latest, but it's failing now on a second machine now that there's a 1.4.1 release. Is there any way to force an older atmelavr version to install on the second computer?

Keyboard Shortcuts variable outcome

I open a project, write some code and upload it using ALT-CTRL-U.
This works only the first time, after the first time platformio acts like it uploads but it does not. This behaviour has been the same over a year now I guess. Chances are that I do not understand the "active upload action" concept. In the bottom left is a button PIO Build, I can choose things there, I think.

avrdude hangs frequently while programming leonardo devices

When running pio run -t upload avrdude hangs often on lower performance hosts.

The leonardo-styled target devices use wait_for_upload_port = true for programming. On Linux (at least the Raspbian) the device file stays the same before and after the reset - thus the wait-for-new-port functionality will end up waiting all the way up to the 5-second timeout. This matches the functionality of the Arduino IDE.

However before the 5-second timeout, PlatformIO waits an extra second before starting to pull the serial ports. This takes PlatformIO's total wait during the wait_for_upload_port to 6 seconds.

In addition to that there is roughly half a second of other delays before avrdude is launched.

This leaves only 1.5 seconds for avrdude to start the programming sequence before the 8 seconds the bootloader waits expire and the bootloader starts running the program on the board.

This 1.5 seconds isn't enough time for slower host machines, such as the Raspberry Pi Zero.

Please wait while upgrading PlatformIO

Checking for updates on all platforms for every upload after each code change is overkill. +90% of all my waiting is done at this screen.
I tried to turn is off, there is an option for "Automatically Update PlatformIO IDE" but that does something else.

screenshot from 2017-07-24 20-43-18

Problem with building usbdrvasm.o in DigisparkKeyboard on digispark-tiny...

While trying to build the example framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard for the digispark-tiny, I get the following. It appears that this error has previously been reported and fixed....

Any hints?
I'm using version 3.4.0.

[Thu Jul 27 21:44:09 2017] Processing digispark-tiny (platform: atmelavr; board: digispark-tiny; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
Converting spark.ino
Collected 69 compatible libraries
Looking for dependencies...
Library Dependency Graph
|--

*** Multiple ways to build the same target were specified for: /home/markv/spark/.pioenvs/digispark-tiny/lib/DigisparkKeyboard/usbdrvasm.o (from ['/home/markv/.platformio/packages/framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard/usbdrvasm.S'] and from ['/home/markv/.platformio/packages/framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard/usbdrvasm.asm'])
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py", line 273, in BuildLibrary


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Bug: Upload on Arduino Uno fails

Moving issue platformio/platformio-core#905 to here as requested.

Configuration

Operating system: Arch Linux 64-bit

PlatformIO Version (platformio --version): PlatformIO, version 3.2.1 (installed in atom (with apm), not by the system's package manager packman or from AUR).

Atom Version: Tried 1.14.2-1 from official repos and from AUR.

Description of problem

I cannot upload anything to Arduino Uno any more. avrdude will erase the old program but fails to upload the new one ("timeout"). I have tried several Uno boards. All of them work fine with Arduino IDE, but none works with PlatformIO since at least this week. I tried to upload a program that worked fine a few weeks ago and hasn't been changed since. An update broke the upload.

Serial Monitor is working.

Steps to Reproduce

  1. Plug the board, open any PlatformIO Project
  2. Press Upload

Actual Results

Program on board gets erased, but the new program will not upload.

avrdude Output (ttyUSB0 is correct):

platformio run --target upload
[Sat Feb 18 10:15:57 2017] Processing megaatmega2560 (platform: atmelavr, board: megaatmega2560, framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 28 compatible libraries
Looking for dependencies...
Project does not have dependencies

Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pioenvs/megaatmega2560/firmware.hex
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done.  Thank you.
 
 
*** [upload] Error 1
========================== [ERROR] Took 18.88 seconds ==========================
 

If problems with PlatformIO Build System:

Not relevant, since the exact same config worked fine a few weeks ago.

Default `upload_flags` should be empty for `upload_protocol` == `avrisp`

By default upload_protocol contains -D option when using avrisp as upload_protocol.

Example:

Such configuration...

$ cat platformio.ini
[env:nano]
platform=atmelavr
board=attiny13
framework=arduino
upload_port=/dev/ttyUSB01
upload_protocol=avrisp

...will give more or less such avrdude command:

avrdude -v -p attiny13 -C avrdude.conf -c avrisp -b 19200 -P "/dev/ttyUSB01" -D -U flash:w:.pioenvs/nano/firmware.hex:i

The problem is that -D option disables auto erase of flash and when using Arduino as programmer omitting this particular phase very often (often = always on all my programmers and AVR chips) causes mismatch errors:

avrdude -v -p attiny13 -C avrdude.conf -c avrisp -b 19200 -P "/dev/ttyUSB01" -D -U flash:w:.pioenvs/nano/firmware.hex:i

(...)
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.08s
(...)
Writing | ################################################## | 100% 0.53s
(...)
Reading | ################################################## | 100% 0.34s
(...)
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0002
0x06 != 0x16
avrdude: verification error; content mismatch

avrdude: safemode: hfuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:FF, L:6A)

avrdude done.  Thank you.

Without -D option everything works as a charm.

Of course one can set empty value to upload_flags to mitigate this problem.
But since -D is not enabled by default in avrdude, maybe it should not be in platformio?

Update to Atmel AVR toolchain

Arduino 1.6.10 brings some build optimizations in toolchain resulting in smaller firmware with Atmel release 3.5.3. There was update to avrdude in this release but later in 1.6.11 avrdude has been reverted to 6.0.1 because of regressions.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37086568-update-to-atmel-avr-toolchain?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github).

Wrong upload COM port detected

PlatformIO 0.3.0 for VSCode

I'm trying to upload to a Sparkfun Pro Micro.

The Pro Micro upload process is the same as with the Arduino Leonardo: Open the selected COM port with 1200 baud and immediately close it to trigger a reset. Then wait until a new COM port appears (can be the same or a different number), then run a normal Arduino upload over this COM port.

In Arduino IDE it works, in PlatformIO for some reason it tries to upload to COM13 even though the new COM port is COM25:

Log:

[06/23/17 22:04:54] Processing sparkfun_promicro16 (platform: atmelavr; upload_port: COM16; board: sparkfun_promicro16; framework: arduino)

Verbose mode can be enabled via `-v, --verbose` option
Collected 27 compatible libraries
Looking for dependencies...
Project does not have dependencies
Looking for upload port...
Use manually specified: COM16
Forcing reset using 1200bps open/close on port COM16
Waiting for the new upload port...
Uploading .pioenvs\sparkfun_promicro16\firmware.hex
avrdude: ser_open(): can't open device "\\.\COM13": Zugriff verweigert
avrdude done.  Thank you.
*** [upload] Error 1
 [ERROR] Took 4.18 seconds 

Pre-reset:
image

Post-reset:
image

platformio.ini:

[env:sparkfun_promicro16]
platform = atmelavr
board = sparkfun_promicro16
framework = arduino
upload_port = COM16

(Curiously if I don't specify any upload_port the reset is still triggered.)

Blink-example with ATTiny85

I tried the blink example with an ATTiny85 (Board: Generic ATTiny85), but the blink interval is 8 times slower than expected. I read out the fuses because I thought the clock is only 1 MHz instead of 8 MHz as described in the documentation. But the values of the read out fuses are ok: low=0x62, high=0xdf, ext=0xff. Any ideas?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

avrdude can't handle file paths with spaces in it anymore

[09/10/16 14:02:38] Processing uno (platform: atmelavr, board: uno, framework: arduino)

Verbose mode can be enabled via -v, --verbose option
Collected 34 compatible libraries
Looking for dependencies...
Library Dependency Graph
|--

|-- v1.0.2
| |-- v1.0
|-- v1.0
|-- v1.1.0
| |-- v1.1.5
| |-- v1.0
| |-- v1.0
|-- v1.1.5
|--
|-- v1.0.0
| |-- v1.0
Linking .pioenvs\uno\firmware.elf
Checking program size .pioenvs\uno\firmware.elf
text data bss dec hex filename
19294 1182 567 21043 5233 .pioenvs\uno\firmware.elf
Building .pioenvs\uno\firmware.hex
Looking for upload port...
Auto-detected: COM15
Uploading .pioenvs\uno\firmware.hex
avrdude: can't open config file "C:\Users\Jan": No such file or directory
avrdude: error reading system wide configuration file "C:\Users\Jan"
*** [upload] Error 1
[ERROR] Took 1.13 seconds


After updating to PlatformIO 3.0.1 avrdude seems to cut away the rest of the file path for the config file.
This bug already popped up two days ago when I enabled development version 3.0.0b13.
This was not an issue in the last stable release before 3.0.1.

Build errors with digispark board

Configuration

OS: Ubuntu 16.04 x64
Platformio version: 3.0.1

Bug description

The brand new project, simplest Blink example. The 'platformio run' command leads error and warnings.

Steps to reproduce

  1. Create new directory (e.g. delme02) and cd into it.
  2. Then execute the commands like in following session:
โ””โ”€(12:15 $)โ”€> platformio boards digispark

Platform: atmelavr
------------------------------------------------------------------------------------------------------------------------------------------------
ID                    MCU            Frequency  Flash   RAM    Name
------------------------------------------------------------------------------------------------------------------------------------------------
digispark-pro         ATTINY167      16Mhz     14kB    512B   Digistump Digispark Pro (Default 16 MHz)
digispark-pro32       ATTINY167      16Mhz     14kB    512B   Digistump Digispark Pro (16 MHz) (32 byte buffer)
digispark-pro64       ATTINY167      16Mhz     14kB    512B   Digistump Digispark Pro (16 MHz) (64 byte buffer)
digispark-tiny        ATTINY85       16Mhz     5kB     512B   Digistump Digispark (Default - 16 MHz)

โ””โ”€(12:15 $)โ”€> platformio init --board digispark-tiny

The current working directory /home/igor/prj/embed/delme02 will be used for project.
You can specify another project directory via
`platformio init -d %PATH_TO_THE_PROJECT_DIR%` command.

The next files/directories have been created in /home/igor/prj/embed/delme02
platformio.ini - Project Configuration File
src - Put your source files here
lib - Put here project specific (private) libraries

Project has been successfully initialized!
Useful commands:
`platformio run` - process/build project from the current directory
`platformio run --target upload` or `platformio run -t upload` - upload firmware to embedded board
`platformio run --target clean` - clean project (remove compiled files)
`platformio run --help` - additional information

โ””โ”€(12:16 $)โ”€> platformio update
Platform Manager
================
Platform atmelavr
--------
Updating atmelavr @ 1.0.2:  [Up-to-date]
Updating framework-arduinoavr @ 1.10608.2:  [Up-to-date]
Updating toolchain-atmelavr @ 1.40801.0:    [Up-to-date]
Updating tool-scons @ 2.4.1:    [Up-to-date]


Library Manager
===============

โ””โ”€(12:17 $)โ”€> cat src/Blink.cpp 
/*
 * Blink
 * Turns on an LED on for one second,
 * then off for one second, repeatedly.
 */

#include <Arduino.h>

void setup()
{
  // initialize LED digital pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  // turn the LED on (HIGH is the voltage level)
  digitalWrite(LED_BUILTIN, HIGH);
  // wait for a second
  delay(1000);
  // turn the LED off by making the voltage LOW
  digitalWrite(LED_BUILTIN, LOW);
   // wait for a second
  delay(1000);
}

โ””โ”€(12:20 $)โ”€> platformio run > build.log 2>&1

โ””โ”€(12:21 $)โ”€> cat build.log
[Mon Sep 12 12:21:26 2016] Processing digispark-tiny (platform: atmelavr, board: digispark-tiny, framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 41 compatible libraries
Looking for dependencies...
Project does not have dependencies
Compiling .pioenvs/digispark-tiny/src/Blink.o
Archiving .pioenvs/digispark-tiny/libFrameworkArduinoVariant.a
Indexing .pioenvs/digispark-tiny/libFrameworkArduinoVariant.a
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24:0,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/WProgram.h:18,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Arduino.h:4,
from src/Blink.cpp:7:
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:37:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotn85.h:38:0,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/io.h:428,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/interrupt.h:38,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/WProgram.h:8,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Arduino.h:4,
from src/Blink.cpp:7:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN     7
^
Compiling .pioenvs/digispark-tiny/FrameworkArduino/HardwareSerial.o
Compiling .pioenvs/digispark-tiny/FrameworkArduino/Print.o
src/Blink.cpp: In function 'void setup()':
src/Blink.cpp:12:11: error: 'LED_BUILTIN' was not declared in this scope
pinMode(LED_BUILTIN, OUTPUT);
^
src/Blink.cpp: In function 'void loop()':
src/Blink.cpp:18:16: error: 'LED_BUILTIN' was not declared in this scope
digitalWrite(LED_BUILTIN, HIGH);
^
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/wiring_private.h:32:0,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/HardwareSerial.cpp:30:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
#warning "This file has been moved to <util/delay.h>."
^
Compiling .pioenvs/digispark-tiny/FrameworkArduino/TinyDebugSerial.o
Compiling .pioenvs/digispark-tiny/FrameworkArduino/TinyDebugSerial115200.o
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.cpp:28:0:
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:37:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotn85.h:38:0,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/io.h:428,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/wiring.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.cpp:27:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN     7
^
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24:0,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.cpp:25:
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:37:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotn85.h:38:0,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/io.h:428,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/pgmspace.h:88,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:30,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.cpp:25:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN     7
^
Compiling .pioenvs/digispark-tiny/FrameworkArduino/TinyDebugSerial38400.o
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.cpp: In member function 'void Print::print(const String&)':
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.cpp:48:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); i++) {
^
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24:0,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial115200.cpp:24:
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:37:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotn85.h:38:0,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/io.h:428,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/pgmspace.h:88,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:30,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial115200.cpp:24:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN     7
^
Compiling .pioenvs/digispark-tiny/FrameworkArduino/TinyDebugSerial9600.o
*** [.pioenvs/digispark-tiny/src/Blink.o] Error 1
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24:0,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial38400.cpp:24:
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:37:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotn85.h:38:0,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/io.h:428,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/pgmspace.h:88,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:30,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial38400.cpp:24:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN     7
^
In file included from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24:0,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial9600.cpp:24:
/home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:37:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotn85.h:38:0,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/io.h:428,
from /home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/pgmspace.h:88,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Print.h:30,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/Stream.h:24,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial.h:31,
from /home/igor/.platformio/packages/framework-arduinoavr/cores/digispark_tiny/TinyDebugSerial9600.cpp:24:
/home/igor/.platformio/packages/toolchain-atmelavr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN     7
^
========================================================== [ERROR] Took 0.57 seconds ==========================================================

Observed results

Error and BIN redefinition.

Expected results

No errors and successfully built firmware :)

FastLED libraries does not behave as expected (Arduino Mega 2560)

I'm unable to control WS2811 led chain using FastLED libraries. I tried to control the led chain using NeoPixel libraries and it did function as it should.
Board: Arduino Mega 2560

Following simple code works with Arduino IDE, but not with PlatformIO:

#include "FastLED.h"

#define NUM_LEDS 1
#define DATA_PIN 3

CRGB leds[NUM_LEDS];

void setup() { 

      FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
}

void loop() { 

  leds[0] = CRGB::Red;
  FastLED.show();
  delay(500);

  leds[0] = CRGB::Black;
  FastLED.show();
  delay(500);
}

ATTiny85 build or RadioHead problem?

The RadioHead library does not work with ATTiny85 with protocol stk500v1.
This works from Arduino IDE.

These settings do not build. They fail over RadioHead_ID124/RH_RF24.cpp:413:3: error: 'Serial' was not declared in this scope

[env:myenv]
platform = atmelavr
framework = arduino
board = attiny85
upload_protocol = stk500v1
upload_flags = -P$UPLOAD_PORT -b$UPLOAD_SPEED
upload_port = /dev/ttyUSB0
upload_speed = 19200
lib_deps = RadioHead
lib_ignore = SPI

With these settings it builds, is also an ATTiny85 but an other board with built-in USB and more.

[env:digispark-tiny]
platform = atmelavr
board = digispark-tiny
framework = arduino
lib_deps = RadioHead
lib_ignore = SPI

While these settings for the digispark work, uploading to my ATTiny85 is not possible because I use stk500v1 and the digispark some USB connection. So I cannot trick it into building and uploading to my ATTiny85 using digispark settings.

#include <RH_ASK.h>

#define R_PIN PB4
#define T_PIN PB1

RH_ASK driver(2000, R_PIN, T_PIN);

void setup() {
}

void loop()
{
  const char *msg = "hello";

  driver.send((uint8_t *)msg, strlen(msg));
  driver.waitPacketSent();
  delay(200);
}

[edit]

It looks like the RadioHead library does not recognize the board identifier supplied by platformio and therefore sets variables to settings the ATTiny85 cannot handle. However, I do not know how to compare the identifiers used by Arduino IDE and platformio.

toolchain-atmelavr package for freebsd_amd64

Hello,

I have compiled toolchain-atmelavr on FreeBSD 10.3R amd64 to fix error below.

PackageManager: Installing toolchain-atmelavr @ ~1.40902.0
Error: Could not find a version that satisfies the requirement '~1.40902.0' for your system 'freebsd_amd64'

I used the source files from here: http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.5.4/

I have added a package.json file (edited for correct system) and removed doc, info, man and share directories, and replaced identical files with symlinks, to save space and make the file structure identical with this linux package.
https://bintray.com/platformio/dl-packages/download_file?file_path=toolchain-atmelavr-linux_x86_64-1.40902.0.tar.gz

Here's the link to the archive.
https://www.dropbox.com/s/x8ovaohyurvl7hr/toolchain-atmelavr-freebsd_amd64-1.40902.0.tar.gz?dl=0

Atmel AVR toolchain supports LTO only partially

Latest updates to AVR toolchain include LTO support in GCC, and compiler works indeed fine producing smaller object code. Unfortunately other tools such as nm (found in $HOME/.platformio/packages/toolchain-atmelavr/bin/avr-nm) does not support reading LTO object files, for example when trying to display symbols:

Print.o:
/home/jazg/.platformio/packages/toolchain-atmelavr/bin/avr-nm: Print.o: plugin needed to handle lto object
00000001 C __gnu_lto_slim
00000001 C __gnu_lto_v1
0000003e a __SP_H__
0000003d a __SP_L__
0000003f a __SREG__
00000000 a __tmp_reg__
00000001 a __zero_reg__

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

avrdude binary downloaded by platformio relies on specific libncurses.so version

Configuration

Operating system:
Fedora 24

PlatformIO Version (platformio --version):
PlatformIO, version 2.11.2

Description of problem

It is not possible to upload compiled Arduino sketch to the board, because avrdude binary downloaded by platformio relies on specific libncurses.so version.

Steps to Reproduce

  1. compile any Arduino sketch on Fedora 24 and try to upload it to the board

Actual Results

Upload fails with:

Auto-detected: /dev/ttyACM0
"/home/xxx/.platformio/packages/tool-avrdude/avrdude" -v -p atmega328p -C "/home/xxx/.platformio/packages/tool-avrdude/avrdude.conf" -c arduino -b 115200 -P "/dev/ttyACM0" -D -U flash:w:.pioenvs/arduino_uno/firmware.hex:i
/home/xxx/.platformio/packages/tool-avrdude/avrdude: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
scons: *** [upload] Error 127

Expected Results

upload should pass successfully

Additional info

platformio should ideally use the tools available on the system and only if some are missing try to download the binaries. Another option would be for platformio to compile the tools from sources or to link the binaries statically. Downloading binary which was dynamically linked with some library is error prone and not very portable.

On my system I have:

/usr/lib/libncurses.so.6
/usr/lib/libncurses.so.6.0

CurieTime library not found in PlatformIO Registry

On PlatformIO 3.2.1 when building for an Arduino Yun, a warning is given saying the lib CurieTime cannot be found in the PlatformIO registry:

Processing yun (platform: atmelavr, lib_deps: CurieTime, board: yun, framework: arduino)
--------------------------------------------------------------------------------
Warning! Library `CurieTime` has not been found in PlatformIO Registry.

Importing the header and using the functions fails the build. How can the CurieTime lib be imported?

Thanks!

Modifying gcc-flags.json

Modifying gcc-flags.json seems to have no effect on the build. Changing any setting in gcc-flags.json is unreflected in the verbose build output of a project (e.g. changing gccDefaultCppFlags). How can gcc-flags.json be enabled?

env:digispark-tiny, env:attiny45: uploading does not do anything

PlatformIO, version 3.1.0 on Ubuntu 16.04.1 x86_64

Using a breadboarded ATtiny45, "Blink" example sketch to be programmed with a mySmartUSBlight on /dev/mysmartusb1 (symlink to /dev/ttyUSB1) and platformio.ini.txt

The Blink sketch is built successfully, but the upload using programmer claims "=== [SUCCESS]" without even calling avrdude:

$ pio run --environment digispark-tiny --target=program
Looking for upload port...
Programming .pioenvs/digispark-tiny/firmware.hex
=== [SUCCESS]

$ pio run --verbose --environment digispark-tiny --target=program --upload-port /dev/mysmartusb1
BeforeUpload(["program"], [".pioenvs/digispark-tiny/firmware.hex"])
=== [SUCCESS]

The usual "avrdude: AVR device initialized and ready to accept instructions" output is not displayed.

  • I (believe I) successfully uploaded a sketch to an ATtiny45 using a unknown version of platformio today
  • Then I updated PlatformIO, PlatformIO IDE and Atom
  • Now avrdude is never called when executing pio run --environment digispark-tiny --target=program:
    pio-attiny-strace.txt

I also exited atom, removed $HOME/.platformio and tried again with the same outcome.
My micronucleus binary seems to be ELF 64 bit.
Edit: Uploading using the IDE menu functions "Upload using Programmer" and "Upload" had the same result.

Cosa library integration

https://github.com/mikaelpatel/Cosa

Is there any way of integration of this great library to plATFORMIO,
OR simply adding path to project file to automatically include base and additional libraries from external folders

It simply integrates with arduino just by copying the library folder, Arduino automaticly tracks all dependency, but with platformio i have to include every additional piece of code,

[env:custom_lib_dirs]
lib_extra_dirs = c:\Downloads\Cosa\cores\cosa\

doesnt help at all, no including

`"C:\Program Files (x86)\JetBrains\CLion 2016.3\bin\cmake\bin\cmake.exe" --build C:\Downloads\Clion_project\cosa2\cmake-build-debug --target PLATFORMIO_BUILD -- -j 8
[12/25/16 05:10:09] Processing pro8MHzatmega168 (platform: atmelavr, board: pro8MHzatmega168, framework: arduino)

Verbose mode can be enabled via `-v, --verbose` option
Collected 27 compatible libraries
Looking for dependencies...
Project does not have dependencies
Compiling .pioenvs\pro8MHzatmega168\src\main.o
src\main.cpp:27:52: fatal error: c:\Downloads\Cosa\cores\cosa\cosa\Cosa.h: No such file or directory
#include "c:\Downloads\Cosa\cores\cosa\cosa\Cosa.h"
^
compilation terminated.
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring_analog.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring_digital.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring_pulse.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring_shift.o
*** [.pioenvs\pro8MHzatmega168\src\main.o] Error 1

[12/25/16 05:10:10] Processing custom_lib_dirs (lib_extra_dirs: c:\Downloads\Cosa\cores\cosa\)

 [ERROR] Took 1.41 seconds 
Error: Please specify platform for 'custom_lib_dirs' environment
mingw32-make.exe[3]: *** [CMakeFiles/PLATFORMIO_BUILD] Error 1
CMakeFiles\PLATFORMIO_BUILD.dir\build.make:56: recipe for target 'CMakeFiles/PLATFORMIO_BUILD' failed
CMakeFiles\Makefile2:103: recipe for target 'CMakeFiles/PLATFORMIO_BUILD.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/PLATFORMIO_BUILD.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles/PLATFORMIO_BUILD.dir/rule] Error 2
mingw32-make.exe: *** [PLATFORMIO_BUILD] Error 2
CMakeFiles\Makefile2:115: recipe for target 'CMakeFiles/PLATFORMIO_BUILD.dir/rule' failed
Makefile:130: recipe for target 'PLATFORMIO_BUILD' failed
`

ATTiny Support

ts seems there are a few bugs when programming ATTiny's using Platformio and the standard atmelavr packages. (Example: warning: "BIN" redefined #define BIN 2) I know its just a warning but who wants to look at that every time they build. I thought it would be nice to use ATTinyCore. After looking through Platformio's folders the folder format is very different, as compared to Arduino. How would I go through creating a package install for Platformio?

https://github.com/SpenceKonde/ATTinyCore

usbdrvasm.asm issue on Digispark

Hey there - thanks for the work on AVRs for PlatformIO. It's great stuff! My issue is fortunately very minor - but seems to be buried in a tarball somewhere.

After a fresh install of PlatformIO, I run into an issue building projects that use DigisparkCDC. The error is:

scons: *** Multiple ways to build the same target were specified for: /Users/kicks/Code/astrochip/spark/.pioenvs/digispark-pro/DigisparkCDC/usbdrvasm.o  (from ['/Users/kicks/Code/astrochip/spark/.pioenvs/digispark-pro/DigisparkCDC/usbdrvasm.S'] and from ['/Users/kicks/Code/astrochip/spark/.pioenvs/digispark-pro/DigisparkCDC/usbdrvasm.asm'])
File "/usr/local/Cellar/platformio/2.11.2/libexec/lib/python2.7/site-packages/platformio/builder/tools/platformio.py", line 257, in BuildLibrary

I experience this on OSX and Linux alike. I can circumvent this issue like so:

cd ~/.platformio/packages/framework-arduinoavr/libraries/__cores__/digispark/DigisparkCDC
mv usbdrvasm.asm usbdrvasm.asm~

That's all it takes. Many thanks!

simulAVR missing in toolchain-atmelavr-linux

It appears that simulavr is missing from toolchain-atmelavr-linux_x86_64. I believe this is a repeat of bug report platformio-core #334. I am new to platformio but am pretty sure this is a bug and not operator error.

Correction: avr-gdb is not missing. Just simulavr.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39569895-simulavr-missing-in-toolchain-atmelavr-linux?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github).

Always recieve ISO C99 warning at build

Operating system: Windows 7 or TravisCI

PlatformIO Version (platformio --version): 3.2.1

Every time I compile code, I receive this error:
:0:17: warning: ISO C99 requires whitespace after the macro name

The GCC linter in the IDE also displays this warning for every project.

The build continues successfully, but the warning is always there.

I also see the error in builds run by TravisCI. For example: https://travis-ci.org/EnviroDIY/EnviroDIY_Mayfly_Logger/jobs/198466734

Programming Arduino Yun over wifi?

Moved from platformio/platformio-core#452

/cc @grzegorzshub, @AKBON, @yveshanoulle


Is it possible to program Yun over wifi please?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39755416-programming-arduino-yun-over-wifi?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github).

ATtiny core on steroids

Feature request, as described here:
https://community.platformio.org/t/radiohead-compiling-fails-for-attiny85/1777

The core used does not support RadioHead, this is the go-to library for using the cheap green 433MHz chips from China so this would be awesome to have!

Best option:
Better cores for the tiny, like this one

Second best option:
Enable digispark-tiny to use Arduino as ISP

Not so great solution:
Change current ATtiny core so RadioHead compiles

Bonus points:
Simple solition for adding my own core, as described here:
SpenceKonde/ATTinyCore#124

Circuit Playground from Adafruit

Hi, I try to use new board from Adafruit, Circuit Playground. It is based on Flora board. So in Platformio IDE I am creating project with flora board. Everything looks ok but program runs slowly. Because of this I've tried to create a new board (same as flora, just I changed name and speed to 9600.
But in IDE, when I try to upload there is an error like:

scons: *** [.pioenvs/playground/src/tmp_ino_to.o] UserError `KeyError `'hwid'' trying to evaluate `${BOARD_OPTIONS[
'build']['hwid'][0][0]}'' trying to evaluate `${_defines(CPPDEFPREFIX, CPPDEFINES, CPPDEFSUFFIX, __env__)}'

Can you please help me. I try platformio IDE, and it looks great, just I have to solve this issue... thank you

Redboard Spark / Arduino UNO

I can build and upload my program/main.cpp to the board, all the read/write leds are blinking so the board if programmed but nothing happens..

If I upload the same code from Arduino IDE it works...

I have been able to upload from Atom before... I have tried to clean/build..

Any hints? Weird problem..


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

add support for stk-600 and new tiny and mega devices

Hi,

i'd like to add support for the Atmel STK-600 and the new ATMega324PB, ATtiny817 devices also.
how do i add a framework for the native avr-gcc?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38000457-add-support-for-stk-600-and-new-tiny-and-mega-devices?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github).

Add support for Arduino UNO WiFi

Hi, please add support for Arduino UNO WiFi.

I am doing some development on this board with CLion. And I would like to use the Arduino WiFi Link Library.

I found that there are some unowifi related code on platformio github (at the end of boards.txt) already, but I can't found unowifi at board manager. Then I install the most similar board uno instead.

The followings are my steps.

pio init --ide clion --board uno
pio lib install "WiFi Link"

main.cpp

#include <Arduino.h>
#include <WiFiLink.h>

void setup()
{
    Serial.begin(9600);

    //Check if communication with the wifi module has been established
    if (WiFi.status() == WL_NO_WIFI_MODULE_COMM)
    {
        Serial.println(F("Communication with WiFi module not established."));
        while (true) // don't continue:
        {
        }
    }

}

void loop()
{
}

When I build it, compile error occur.

Compiling .pioenvs/uno/lib/WiFi Link_ID1541/utility/comm.o
Compiling .pioenvs/uno/lib/WiFi Link_ID1541/utility/server_drv.o
In file included from .piolibdeps/WiFi Link_ID1541/src/utility/comm.cpp:27:0:
.piolibdeps/WiFi Link_ID1541/src/utility/comm.h:40:8: error: 'CommDrv' does not name a type
extern CommDrv commDrv;
^

Then I took a look at comm.h. And from this src code, I think I should define ESP_CH_UART first (for Arduino UNO WIFI DEV. EDITION) although I know I should not modify this file by myself. But anyway, let me try if it could work.

#ifndef COMM_H
#define COMM_H

//#if defined(__AVR_ATmega32U4__) || defined(ARDUINO_ARCH_STM32F4)
#if defined(ESP_CH_UART)            // <---- I have to define this
    #include "utility/uart/uart_drv.h"
	class CommDrv : public UartDrv {};
#elif defined(ESP_CH_SPI)              
    #include "utility/spi/spi_drv.h"
    class CommDrv : public SpiDrv {};
#endif

extern CommDrv commDrv;

#endif

So I define it manually.

#ifndef COMM_H
#define COMM_H

#define ESP_CH_UART    // <---- I define it manually

//#if defined(__AVR_ATmega32U4__) || defined(ARDUINO_ARCH_STM32F4)
#if defined(ESP_CH_UART)
    #include "utility/uart/uart_drv.h"
	class CommDrv : public UartDrv {};
#elif defined(ESP_CH_SPI)
    #include "utility/spi/spi_drv.h"
    class CommDrv : public SpiDrv {};
#endif

extern CommDrv commDrv;

#endif

And then there is another compile error. Cannot find Wire.h

Compiling .pioenvs/uno/src/main.o
Compiling .pioenvs/uno/lib/WiFi Link_ID1541/utility/uart/SC16IS750.o
.piolibdeps/WiFi Link_ID1541/src/utility/uart/SC16IS750.cpp:25:18: fatal error: Wire.h: No such file or directory
#include <Wire.h>
^
compilation terminated.

I don't know why it can't find Wire.h. Never mind, let me include it manually.

#include <Arduino.h>
#include <Wire.h>   // <---- I include it manually
#include <WiFiLink.h>

void setup() {...}
void loop() {...}

Linking error occur this time. I have no idea how to fix it ...

Archiving .pioenvs/uno/lib/libWiFi Link_ID1541.a
Indexing .pioenvs/uno/lib/libWiFi Link_ID1541.a
Linking .pioenvs/uno/firmware.elf
/var/folders/s8/g4549n1n2610wz5_5kgbrc540000gn/T//ccg6rm5D.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_main.o.1959':
ccg6rm5D.ltrans0.o:(.text.startup+0x28): undefined reference to `UartDrv::begin()'
/var/folders/s8/g4549n1n2610wz5_5kgbrc540000gn/T//ccg6rm5D.ltrans0.ltrans.o: In function `main':
ccg6rm5D.ltrans0.o:(.text.startup+0x1a4): undefined reference to `UartDrv::waitForSlaveReady()'
ccg6rm5D.ltrans0.o:(.text.startup+0x1a8): undefined reference to `UartDrv::commSlaveSelect()'
ccg6rm5D.ltrans0.o:(.text.startup+0x1b0): undefined reference to `UartDrv::sendCmd(unsigned char, unsigned char)'
ccg6rm5D.ltrans0.o:(.text.startup+0x1b4): undefined reference to `UartDrv::waitForSlaveReady()'
ccg6rm5D.ltrans0.o:(.text.startup+0x1ce): undefined reference to `UartDrv::waitResponseCmd(unsigned char, unsigned char, unsigned char*, unsigned char*)'
ccg6rm5D.ltrans0.o:(.text.startup+0x1d2): undefined reference to `UartDrv::commSlaveDeselect()'
collect2: error: ld returned 1 exit status
*** [.pioenvs/uno/firmware.elf] Error 1

Please help to support Arduino UNO WiFi in a proper way.
Thanks.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributing a board with custom pins_arduino.h for Arduino Framework

Hello, I would like to contribute the support for a board called Altair, I successfully got it working by making a custom board json file and putting it in ~/.platformio/boards and manually copying the custom pins_arduino.h to ~/.platformio/packages/framework-arduinoavr/variants/altair/.

Here are the files and instructions to manually install it: https://github.com/Rodmg/altair-platformio

However this is not convenient as I have to copy the pins_arduino.h file again every time the framework is updated.

I've been looking at the platform-atmelavr (this) github repository and I know that I could make a pull request for adding the board json definition, however I cannot find where to put the pins_arduino.h file.

Where are the board variant files located?

Thank you.

Arduino I2C Wire no data

Versions
IDE: 17.3
Core: 3.2.1

Config

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
lib_deps =
  Wire

I am trying to move from the Arduino IDE to platformio and that is not as simple as copy/paste but I am getting there. The issue I run into at the moment is an I2C device (LM75) using the Wire.h library that returns no data. I have taken out as many bits and pieces as possible to isolate the issue.

#include <Arduino.h>
#include <Wire.h>
#include <LM75.h>

LM75 sensor;

void setup() {
  Serial.begin(9600);
}

void loop() {
  // get temperature from sensor
  Serial.print("Current temp: ");
  Serial.print(sensor.temp());
  Serial.println(" C");

  // shutdown the sensor and wait a while
  sensor.shutdown(true);
  delay(3000);
  // wake up sensor for next time around
  sensor.shutdown(false);
  delay(1000);

  Serial.println();
}

This exact code works when I use the Arduino IDE but not when I use platformio. In the past this was due to difference in pin names. Here, since it is using I2C this will not be the case.

I have use an I2C Scanner and the code finds the chip and the address is as it should be, 0x48. But the request or read from wire gives an other result when I built with platformio than when I build with Arduinol IDE.

I have taken the Arduino Wire library and overwritten the platformio version (same code) with this just to be sure it's equal.

Added the library I use and a better example of my code
LM75.zip

Usbasp upload parameters may be wrong

Hello! I cant upload an sketch using this configuration:

[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
upload_protocol = usbasp

I got the message "0x04 != 0x0c" when it verifies the flash.

If I upload the firmware manually with this command everything is fine:

avrdude -p m2560 -c usbasp -F -U flash:w:/home/alvaro/atom/megaasp/.pioenvs/megaatmega2560/firmware.hex

I dont really know how platformio manages the uploads, I just detected this and notify you. I can only provide the command above that works fine.
My platformio installation just updated yesterday and before that the skteches were uploading fine.

Thank you

Trinket 5V 8MHz timing issue

The timing on the Trinket seems to be off after downloading the code to the Trinket. The Arduino build seems to be fine. Here is the build output from the Arduino. Please reference https://community.platformio.org/t/trinket-5v-8mhz-timing-issues/1149/6.

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/joeli/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/joeli/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/joeli/Documents/Arduino/libraries -fqbn=adafruit:avr:trinket3 -ide-version=10613 -build-path /var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/joeli/Documents/Arduino/Redirect/Redirect.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/joeli/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/joeli/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/joeli/Documents/Arduino/libraries -fqbn=adafruit:avr:trinket3 -ide-version=10613 -build-path /var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/joeli/Documents/Arduino/Redirect/Redirect.ino
Using board 'trinket3' from platform in folder: /Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp:1:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp:1:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
Compiling libraries...
Compiling core...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_pulse.S.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/WInterrupts.c.o"
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c: In function 'attachInterrupt':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c:166:8: warning: #warning attachInterrupt may need some more work for this cpu (case 1) [-Wcpp]
#warning attachInterrupt may need some more work for this cpu (case 1)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c: In function 'detachInterrupt':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c:255:8: warning: #warning detachInterrupt may need some more work for this cpu (case 1) [-Wcpp]
#warning detachInterrupt may need some more work for this cpu (case 1)
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c:29:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c: In function 'INT1_vect':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c:310:15: warning: 'INT1_vect' appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_1)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c:310:1: note: in expansion of macro 'IMPLEMENT_ISR'
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_1)
^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/hooks.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/hooks.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_analog.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_analog.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_digital.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_digital.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_pulse.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_pulse.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_shift.c" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_shift.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/CDC.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/CDC.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:33,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/CDC.cpp:19:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:24,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/CDC.cpp:19:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp:29:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp:29:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial0.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial1.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial2.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial3.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/IPAddress.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/IPAddress.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/IPAddress.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/IPAddress.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/PluggableUSB.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:33,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:24,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/Print.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.cpp:27:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.cpp:27:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/Stream.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.cpp:25:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/Tone.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:39:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/interrupt.h:38,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:37:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:37:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp: In function 'void TIMER2_COMPA_vect()':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:538:5: warning: 'TIMER2_COMPA_vect' appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]
ISR(TIMER2_COMPA_vect)
^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBCore.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/USBCore.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:33,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBCore.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:24,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBCore.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WMath.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/WMath.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WString.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/WString.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/abi.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/abi.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/main.cpp.o"
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h:26:0,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.h:29,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:232,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:32:0: warning: "BIN" redefined
#define BIN 2
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotn85.h:38:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:428,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:20:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7

^
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10613 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/joeli/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/new.cpp" -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/new.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_pulse.S.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/WInterrupts.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/hooks.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_analog.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_digital.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_pulse.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/wiring_shift.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/CDC.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial0.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial1.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial2.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/HardwareSerial3.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/IPAddress.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/PluggableUSB.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/Print.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/Stream.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/Tone.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/USBCore.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/WMath.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/WString.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/abi.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/main.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/new.cpp.o"
Linking everything together...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -Wall -Wextra -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=attiny85 -o "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/Redirect.ino.elf" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/sketch/Redirect.ino.cpp.o" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/core/core.a" "-L/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630" -lm
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/Redirect.ino.elf" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/Redirect.ino.eep"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/Redirect.ino.elf" "/var/folders/dy/36kvbtrx123bh0zrzjrwc4sc0000gn/T/arduino_build_119630/Redirect.ino.hex"

Sketch uses 1,292 bytes (24%) of program storage space. Maximum is 5,310 bytes.
Global variables use 21 bytes of dynamic memory.

Add Support for EnviroDIY Mayfly

Add support for the EnviroDIY Mayfly: https://github.com/EnviroDIY/Arduino_boards

{
"build": {
"extra_flags": "-DARDUINO_AVR_ENVIRODIY_MAYFLY",
"core": "arduino",
"f_cpu": "8000000L",
"mcu": "atmega1284p",
"variant": "mayfly"
},
"frameworks": [
"arduino"
],
"name": "EnviroDIY Mayfly",
"upload": {
"maximum_ram_size": 16384,
"maximum_size": 130048,
"protocol": "arduino",
"require_upload_port": true,
"speed": 57600
},
"url": "http://envirodiy.org/forums/",
"vendor": "Stroud Water Research Center - EnviroDIY"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.