Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marlintool crashes when reading AVR after flash #14

Open
5ft24dave opened this issue Sep 7, 2018 · 1 comment
Open

Marlintool crashes when reading AVR after flash #14

5ft24dave opened this issue Sep 7, 2018 · 1 comment

Comments

@5ft24dave
Copy link

I have an Anet A8and have been using marlintool for about a year. I upgraded to Marlin 1.1.9 and succesfully built and uploaded to the ANET main board.
I made a few minor changes to my Configuration.h, and tried to build and upload. Builds successfully, uploads successfully, however when it goes to read the flash after it is done writing, it will get between 1 and 3 # symbols, and the Anet mainboard reboots, and marlintool says An error occurred while uploading the sketch.
/home/pi/marlintool/arduino/hardware/tools/avr/bin/avrdude -C/home/pi/marlintool/arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega1284p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/home/pi/marlintool/./build/Marlin.ino.hex:i

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

     System wide configuration file is "/home/pi/marlintool/arduino/hardware/tools/avr/etc/avrdude.conf"
     User configuration file is "/home/pi/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyUSB0
     Using Programmer              : arduino
     Overriding Baud Rate          : 57600
     AVR Part                      : ATmega1284P
     Chip Erase delay              : 55000 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   128    0 no       4096    8      0  9000  9000 0xff 0xff
       flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
       lock           0     0     0    0 no          1    0      0  9000  9000 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
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

     Programmer Type : Arduino
     Description     : Arduino
     Hardware Version: 2
     Firmware Version: 1.16
     Vtarget         : 0.0 V
     Varef           : 0.0 V
     Oscillator      : Off
     SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9705 (probably m1284p)
avrdude: reading input file "/home/pi/marlintool/./build/Marlin.ino.hex"
avrdude: writing flash (122320 bytes):

Writing | ################################################## | 100% 30.13s

avrdude: 122320 bytes of flash written
avrdude: verifying flash memory against /home/pi/marlintool/./build/Marlin.ino.hex:
avrdude: load data flash data from input file /home/pi/marlintool/./build/Marlin.ino.hex:
avrdude: input file /home/pi/marlintool/./build/Marlin.ino.hex contains 122320 bytes
avrdude: reading on-chip flash data:

Reading | ##
An error occurred while uploading the sketch

@mmone
Copy link
Owner

mmone commented Sep 7, 2018

This error is generated by avrdude that is used for flashing the firmware not by marlintool itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants