Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-12-2017, 05:15 PM   #21 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 191
Thanks: 91
Thanked 66 Times in 61 Posts
Hi t vago
Thanks for the help calculating, I created a file in excel to help in some calculations, if I can check if everything is working well thank you and can make some corrections if necessary.
The file is here.https://mega.nz/#!hZEDnJpQ!hJ1LKufAT...xUxGz6fUnj2lO4

This last version of MPGuino I am not able to upload the code for the arduino, it starts but then it takes a lot of time and in the end it gives an error but does not specify what it is, maybe it is deep sleep before concluding, because it takes a lot of time for later give the error.

Thanks
José Rodrigues

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-12-2017, 11:37 PM   #22 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,753

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.49 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 791
Thanked 673 Times in 431 Posts
Quote:
Originally Posted by josemapiro View Post
Thanks for the help calculating, I created a file in excel to help in some calculations, if I can check if everything is working well thank you and can make some corrections if necessary.
Your spreadsheet looks good. I did make a couple of corrections. One was with the labels on your microseconds/gal section, and the other was with your SI correction factor section.

Quote:
Originally Posted by josemapiro View Post
This last version of MPGuino I am not able to upload the code for the arduino, it starts but then it takes a lot of time and in the end it gives an error but does not specify what it is, maybe it is deep sleep before concluding, because it takes a lot of time for later give the error.
Can you post a screenshot of your Arduino IDE? That would help me in troubleshooting.

I have also included an alpha version of the latest code. I am not sure whether the LCD works, because I am trying to get the deep sleep code working and I need to move the LCD part of the code away from the ADC. I was using ADC for LCD delay generation, and now I am using timer0.
Attached Files
File Type: zip Calculations for MPGuino (Beta).xlsx.zip (9.8 KB, 12 views)
__________________
The Fiat Dakota


The Karen-mobile


The Red Sled

Last edited by t vago; 01-13-2017 at 06:50 PM.. Reason: removed non-production code
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
josemapiro (01-13-2017)
Old 01-13-2017, 12:33 PM   #23 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 191
Thanks: 91
Thanked 66 Times in 61 Posts
Hi t vago
Quote:
Originally Posted by t vago View Post
I did make a couple of corrections. One was with the labels on your microseconds/gal section, and the other was with your SI correction factor section.
Thank you for the correction.

This new version also has the same problem, the compilation is done without errors when it starts to send it is slow and does not send.
This is the information it shows.
Code:
Arduino: 1.8.0 (Windows 10), Placa:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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 22174 bytes (8%) do espaço de armazenamento do programa. O máximo é 253952 bytes.
Variáveis globais usam 1286 bytes (15%) de memória dinâmica, restando 6906 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.01s

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 (22174 bytes):

Writing | #####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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x13
avrdude: stk500v2_paged_write: write command failed
#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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
Ocorreu um erro a enviar o rascunho
Thanks
José Rodrigues

Last edited by josemapiro; 01-13-2017 at 12:39 PM..
  Reply With Quote
Old 01-13-2017, 12:57 PM   #24 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,753

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.49 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 791
Thanked 673 Times in 431 Posts
Quote:
Originally Posted by josemapiro View Post
Code:
Reading | ################################################## | 100% 0.01s

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 (22174 bytes):

Writing | #####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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x13
avrdude: stk500v2_paged_write: write command failed
#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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
Ocorreu um erro a enviar o rascunho
Yah, my Mega2560 did that a week ago. It would not accept any Arduino program, regardless of what I did. I had to reprogram the bootloader onto it, to make it work again.

I used one of these:

Pololu USB AVR Programmer

to reflash my Mega2560 with its bootloader.

My Mega2560 is my primary test platform, followed by my TinkerKit! LCD module. I was finally able to test the LCD code, and it works... but it is incredibly slow. I am going to revert to using the ADC interrupt for the LCD timing.
__________________
The Fiat Dakota


The Karen-mobile


The Red Sled
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
josemapiro (01-13-2017)
Old 01-13-2017, 01:57 PM   #25 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 191
Thanks: 91
Thanked 66 Times in 61 Posts
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

Last edited by josemapiro; 01-13-2017 at 02:11 PM..
  Reply With Quote
Old 01-13-2017, 02:49 PM   #26 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,753

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.49 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 791
Thanked 673 Times in 431 Posts
Quote:
Originally Posted by josemapiro View Post
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.
Can you tell me (or copy and paste into your reply) what all options you selected? I cannot duplicate your problem, either with the 20170107 version or the version I am currently working on. It might be an issue with your Arduino IDE, as I notice you're using 1.8.0 for Windows. I am using version 1.6.12 for Windows and 1.0.5+dfsg2-4 for Linux.
__________________
The Fiat Dakota


The Karen-mobile


The Red Sled
  Reply With Quote
Old 01-13-2017, 03:22 PM   #27 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 191
Thanks: 91
Thanked 66 Times in 61 Posts
Hi t vago
Quote:
Originally Posted by t vago View Post
Can you tell me (or copy and paste into your reply) what all options you selected? I cannot duplicate your problem, either with the 20170107 version or the version I am currently working on. It might be an issue with your Arduino IDE, as I notice you're using 1.8.0 for Windows. I am using version 1.6.12 for Windows and 1.0.5+dfsg2-4 for Linux.
I select all the code copy and paste it in the arduino IDE and retreat the commented in #define ArduinoMega2560 true.
I use the portable version 1.8.0 of the arduino IDE, I already tested with the portable version 1.6.0 and it happens the same.
https://www.arduino.cc/download_hand....0-windows.zip

Thanks
José Rodrigues
  Reply With Quote
Old 01-13-2017, 05:40 PM   #28 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,753

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.49 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 791
Thanked 673 Times in 431 Posts
Quote:
Originally Posted by josemapiro View Post
Hi t vago

I select all the code copy and paste it in the arduino IDE and retreat the commented in #define ArduinoMega2560 true.
I use the portable version 1.8.0 of the arduino IDE, I already tested with the portable version 1.6.0 and it happens the same.
Can you reflash back to the 20170107 version and get it to work again?
__________________
The Fiat Dakota


The Karen-mobile


The Red Sled
  Reply With Quote
Old 01-13-2017, 05:50 PM   #29 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 191
Thanks: 91
Thanked 66 Times in 61 Posts
Quote:
Originally Posted by t vago View Post
Can you reflash back to the 20170107 version and get it to work again?
Yes without problems, the information I put in the previous post was made after having had the error, and as you can see was done successfully.
I think there is something in the code that disables anything and does not premise communication between the Arduino IDE and the Arduino Mega.

Thanks
José Rodrigues
  Reply With Quote
Old 01-13-2017, 06:50 PM   #30 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,753

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.49 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 791
Thanked 673 Times in 431 Posts
Quote:
Originally Posted by josemapiro View Post
Yes without problems, the information I put in the previous post was made after having had the error, and as you can see was done successfully.
I think there is something in the code that disables anything and does not premise communication between the Arduino IDE and the Arduino Mega.
I am going to do an experiment here, and edit this post with my results.

https://youtu.be/XLfNDOeNIw4

I can find nothing wrong. I used the most recent version of this code as of this post, and I used the 1.8.0 IDE to upload it to my AtMega 2560.

The code, with the reversion to the fast LCD code, was also successfully tested on my TinkerKit! LCD module.

I honestly can't think of any situation where the Arduino IDE could not upload a sketch it successfully compiled, because of something inside the compiled sketch itself.

__________________
The Fiat Dakota


The Karen-mobile


The Red Sled

Last edited by t vago; 01-16-2017 at 12:11 PM.. Reason: removed old code
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
josemapiro (01-14-2017)
Reply  Post New Thread


Thread Tools




Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com