Problem with upgrading MK2 to FW 3.1.0
Hi,
today I tried to upgrade firmware on my MK2 to the latest 3.1.0 version. I'm on Linux, so the same as before, I used avrdude:
$ pwd
/home/stibi/Downloads/prusa_firmware/prusa3d_fw_3_1_0/MK2
$ sudo avrdude -c stk500v2 -b 115200 -p Atmega2560 -v -P /dev/ttyACM0 -D -U 1_75mm_MK2-RAMBo13a-E3Dv6full.hex
avrdude: Version 6.3, compiled on Aug 9 2017 at 12:31:56
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 : stk500v2
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 : STK500V2
Description : Atmel STK500 Version 2.x firmware
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: safemode: hfuse reads as D0
avrdude: safemode: efuse reads as FD
avrdude: reading input file "1_75mm_MK2-RAMBo13a-E3Dv6full.hex"
avrdude: input file 1_75mm_MK2-RAMBo13a-E3Dv6full.hex auto detected as Intel Hex
avrdude: writing flash (241578 bytes):
Writing | ############################### | 62% 24.01savrdude: stk500v2_ReceiveMessage(): timeout
Writing | ################################# | 66% 30.53savrdude: stk500v2_ReceiveMessage(): timeout
Writing | ############################################ | 87% 43.62savrdude: stk500v2_ReceiveMessage(): timeout
Writing | ################################################## | 100% 53.61s
avrdude: 241578 bytes of flash written
avrdude: verifying flash memory against 1_75mm_MK2-RAMBo13a-E3Dv6full.hex:
avrdude: load data flash data from input file 1_75mm_MK2-RAMBo13a-E3Dv6full.hex:
avrdude: input file 1_75mm_MK2-RAMBo13a-E3Dv6full.hex auto detected as Intel Hex
avrdude: input file 1_75mm_MK2-RAMBo13a-E3Dv6full.hex contains 241578 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 29.62s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x24b00
0xff != 0xdc
avrdude: verification error; content mismatch
avrdude: safemode: hfuse reads as D0
avrdude: safemode: efuse reads as FD
avrdude: safemode: Fuses OK (E:FD, H:D0, L:FF)
avrdude done. Thank you.
😯 oops…what I did wrong? Is the command and its parameters correct?
The printer is of course not working now, I can't upload older version. I hope it's not bricked…
Now I'm googling how to fix it, but if you have a clue, please help.
I kind of remember that there was something about avrdude version? The latest might now be compatible to do this task? Is it possible?
Re: Problem with upgrading MK2 to FW 3.1.0
Hi guys,
sorry for bumping the post, but really no hint at all what could be wrong here?
Re: Problem with upgrading MK2 to FW 3.1.0
Hi, first of all, I'm not an expert.
I recently upgrade my printer without issue. But before doing that, I read a lot of posts about problem / how to.
And I see during your update timeout error. If I remember well, it can be cause of a too long usb cable (+1.5m) or poor quality usb cable.
Re: Problem with upgrading MK2 to FW 3.1.0
Hi, thanks for your reply!
I'm pretty sure the cable is ok, it's the original cable, bundled to the printer.
Anyway, I just tried the FirmwareUpdater app for Windows and it worked! Wife's Windows notebook saved me 🙂
So, the printer works now, but still I'd like to know what is the problem with linux and avrdude…if anyone knows, please let me know.
Re: Problem with upgrading MK2 to FW 3.1.0
I am on linux too (Archlinux).
I have no issue with avrdude version 6.3.
Re: Problem with upgrading MK2 to FW 3.1.0
Did the OP solve this problem? I'm having trouble getting my Ubuntu to communicate with my MK2 also. I'm running avrdude 6.2 on Ubuntu 16.04. I ended up using a Windows PC to flash 3.1.0 to the printer previously and have been trying to flash a previous version of FW to the printer via my Ubuntu computer. Is there a chance I could "brick" the printer?!!!
Re: Problem with upgrading MK2 to FW 3.1.0
FWIW... I can confirm mine is working on Ubuntu 16.04, but I flashed an older version. My printer had 3.1.0 at the time so it was communicating with avrdude just fine. Looks to me like a few little hiccups with the timeouts and then resumed saving. USB cable, close proximity to mains electric lines, RF interference? I would think you could just try again? Or won't it communicate at all?