Hi t vago
There must be some problem with the code because if I use the version "20170107 - mpguino_1.94_tav.c" it works normally as you can see below, this error only happened in these last two versions.
Code:
E:\arduino-1.8.0-windows\arduino-1.8.0\arduino-builder -dump-prefs -logger=machine -hardware E:\arduino-1.8.0-windows\arduino-1.8.0\hardware -tools E:\arduino-1.8.0-windows\arduino-1.8.0\tools-builder -tools E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -built-in-libraries E:\arduino-1.8.0-windows\arduino-1.8.0\libraries -libraries C:\Users\josem\OneDrive\Documentos\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0042 -ide-version=10800 -build-path C:\Users\josem\AppData\Local\Temp\arduino_build_882241 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -prefs=runtime.tools.avrdude.path=E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -verbose C:\Users\josem\Desktop\MPGuino.ino\MPGuino.ino.ino
E:\arduino-1.8.0-windows\arduino-1.8.0\arduino-builder -compile -logger=machine -hardware E:\arduino-1.8.0-windows\arduino-1.8.0\hardware -tools E:\arduino-1.8.0-windows\arduino-1.8.0\tools-builder -tools E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -built-in-libraries E:\arduino-1.8.0-windows\arduino-1.8.0\libraries -libraries C:\Users\josem\OneDrive\Documentos\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0042 -ide-version=10800 -build-path C:\Users\josem\AppData\Local\Temp\arduino_build_882241 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -prefs=runtime.tools.avrdude.path=E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr -verbose C:\Users\josem\Desktop\MPGuino.ino\MPGuino.ino.ino
Using board 'mega' from platform in folder: E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr
Using core 'arduino' from platform in folder: E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr
Detecting libraries used...
"E:\arduino-1.8.0-windows\arduino-1.8.0\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr\cores\arduino" "-IE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr\variants\mega" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\sketch\MPGuino.ino.ino.cpp" -o "nul"
Generating function prototypes...
"E:\arduino-1.8.0-windows\arduino-1.8.0\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr\cores\arduino" "-IE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr\variants\mega" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\sketch\MPGuino.ino.ino.cpp" -o "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\preproc\ctags_target_for_gcc_minus_e.cpp"
"E:\arduino-1.8.0-windows\arduino-1.8.0\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\preproc\ctags_target_for_gcc_minus_e.cpp"
A compilar o rascunho...
"E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr\cores\arduino" "-IE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\arduino\avr\variants\mega" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\sketch\MPGuino.ino.ino.cpp" -o "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\sketch\MPGuino.ino.ino.cpp.o"
Compiling libraries...
Compiling core...
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\wiring_pulse.S.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\WInterrupts.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\hooks.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\wiring.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\wiring_analog.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\wiring_digital.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\wiring_pulse.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\wiring_shift.c.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\CDC.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\HardwareSerial.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\HardwareSerial0.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\HardwareSerial1.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\HardwareSerial2.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\HardwareSerial3.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\IPAddress.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\PluggableUSB.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\Print.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\Stream.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\Tone.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\USBCore.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\WMath.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\WString.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\abi.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\main.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\new.cpp.o
A usar o ficheiro previamente compilado: C:\Users\josem\AppData\Local\Temp\arduino_build_882241\core\core.a
Linking everything together...
"E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.elf" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241\sketch\MPGuino.ino.ino.cpp.o" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/core\core.a" "-LC:\Users\josem\AppData\Local\Temp\arduino_build_882241" -lm
"E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.elf" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.eep"
"E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.elf" "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.hex"
O rascunho usa 19920 bytes (7%) do espaço de armazenamento do programa. O máximo é 253952 bytes.
Variáveis globais usam 1296 bytes (15%) de memória dinâmica, restando 6896 bytes para variáveis locais. O maximo é 8192 bytes.
E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/bin/avrdude -CE:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.hex:i
avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "E:\arduino-1.8.0-windows\arduino-1.8.0\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM4
Using Programmer : wiring
Overriding Baud Rate : 115200
AVR Part : ATmega2560
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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 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 : Wiring
Description : Wiring
Programmer Model: AVRISP
Hardware Version: 15
Firmware Version Master : 2.10
Vtarget : 0.0 V
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.hex"
avrdude: writing flash (19920 bytes):
Writing | ################################################## | 100% 3.21s
avrdude: 19920 bytes of flash written
avrdude: verifying flash memory against C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.hex:
avrdude: load data flash data from input file C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.hex:
avrdude: input file C:\Users\josem\AppData\Local\Temp\arduino_build_882241/MPGuino.ino.ino.hex contains 19920 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 2.56s
avrdude: verifying ...
avrdude: 19920 bytes of flash verified
avrdude done. Thank you.
Final version of the spreadsheet
https://mega.nz/#!ccNBRToC!-hUaaizAv...EDtY_zK2OZ7cFU
Thanks
José Rodrigues