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

Firmware update hangs #21

Open
victorevector opened this issue Mar 16, 2017 · 0 comments
Open

Firmware update hangs #21

victorevector opened this issue Mar 16, 2017 · 0 comments
Assignees
Labels

Comments

@victorevector
Copy link
Contributor

What did I do?

Initiated a 1.2.0-c2.1 update on Moist-Agatha.

What did I expect to happen?

Update of printer

What happened instead?

Printer updating screen hangs

Investigation findings

Looks like the source of the bug is flash_mainboard_c2_1-1-5.sh. It hangs if you run it independent of all the other updates. Also, the Update_Script hangs right after executing that script.

The script hangs after the firmware is flashed. And given the log output, it looks like erase_eerprom.py is the source of the problem.

This is only happening on moist-agatha...

(oprint)pi@moist-agatha:~/.octoprint/data/RoboLCD/Update_Script/updates $ sudo /bin/bash flash_mainboard_c2_1-1-5.sh
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python2.7/dist-packages
Cleaning up...
Reading package lists... Done
Building dependency tree
Reading state information... Done
avrdude is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.

avrdude: Version 6.1, compiled on Jul  7 2015 at 10:29:47
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
         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
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FF
avrdude: reading input file "Marlin.C2.1.1.5.hex"
avrdude: input file Marlin.C2.1.1.5.hex auto detected as Intel Hex
avrdude: writing flash (119486 bytes):

Writing | ################################################## | 100% 21.05s

avrdude: 119486 bytes of flash written
avrdude: verifying flash memory against Marlin.C2.1.1.5.hex:
avrdude: load data flash data from input file Marlin.C2.1.1.5.hex:
avrdude: input file Marlin.C2.1.1.5.hex auto detected as Intel Hex
avrdude: input file Marlin.C2.1.1.5.hex contains 119486 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 15.32s

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

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

avrdude done.  Thank you.


^CTraceback (most recent call last):
  File "erase_eeprom.py", line 56, in <module>
    ee.setup_serial()
  File "erase_eeprom.py", line 19, in setup_serial
    ard_line = self.ser.readline()
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 446, in read
    ready,_,_ = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt
Update Complete!
@victorevector victorevector self-assigned this Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant