Bricked Printrboard - Help Pls.

Code hacking talk

Bricked Printrboard - Help Pls.

Postby 4lathe » 2017-Jan-Mon-23-Jan

So I have a Printrbot Simple Metal that's 2 years old and has been working perfectly since then. I recently tried to update the firmware and no computer will recognize the printer anymore. Using Printrbot Firmware Updater.app from printrbottalk after putting jumper in place (my board is Rev f4) and pressing reset, I get message dfu-programmer-no device present.
I figured that I might have screwed up the boot loader somehow and bought a spark fun usbtinyisp. I loaded up the avrdude stuff and plugged it in and downloaded BootloaderDFU.hex ( 10k bytes) from.lincomatic. I then ran the avrdude command to flash the bootloader.

avrdude -c usbtiny -p at90usb1286 -U flash:w:BootloaderDFU.hex:i -v

avrdude: Version 6.0.1, compiled on Dec 16 2013 at 17:26:24
Copyright (c) 2000-2005 Brian Dean,
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/local/CrossPack-AVR-20131216/etc/avrdude.conf"
User configuration file is "/Users/chris/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 004:003-1781-0c9f-ff-00
AVR Part : AT90USB1286
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 6 256 0 yes 131072 256 512 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 : USBtiny
Description : USBtiny simple USB programmer,
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9782
avrdude: safemode: lfuse reads as 5E
avrdude: safemode: hfuse reads as 99
avrdude: safemode: efuse reads as F3
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Using SCK period of 10 usec
avrdude: reading input file "BootloaderDFU.hex"
avrdude: writing flash (131072 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 131072 bytes of flash written
avrdude: verifying flash memory against BootloaderDFU.hex:
avrdude: load data flash data from input file BootloaderDFU.hex:
avrdude: input file BootloaderDFU.hex contains 131072 bytes
avrdude: reading on-chip flash data:

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

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x1f000
0xff != 0x4b
avrdude: verification error; content mismatch

avrdude: safemode: lfuse reads as 5E
avrdude: safemode: hfuse reads as 99
avrdude: safemode: efuse reads as F3
avrdude: safemode: Fuses OK (H:F3, E:99, L:5E)

avrdude done. Thank you.


This seemed to work but I don't know why it says it wrote 131,072 ( the full memory) when the boot loader is only 10k bytes.
also this seemed to do nothing as when I tried to use Printrbot Firmware updater again to update the Marlin stuff I got the same message -
dfu- programmer - no device present.

Also when I run an avrdude command to dump flash and write it to a file, it returns normally but writes an empty file.

avrdude -p at90usb1286 -c usbtiny -U flash:r:"/Users/chris/test":h -v

avrdude: Version 6.0.1, compiled on Dec 16 2013 at 17:26:24
Copyright (c) 2000-2005 Brian Dean,
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/local/CrossPack-AVR-20131216/etc/avrdude.conf"
User configuration file is "/Users/chris/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 004:003-1781-0c9f-ff-00
AVR Part : AT90USB1286
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 6 256 0 yes 131072 256 512 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 : USBtiny
Description : USBtiny simple USB programmer, htt
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9782
avrdude: safemode: lfuse reads as 5E
avrdude: safemode: hfuse reads as 99
avrdude: safemode: efuse reads as F3
avrdude: reading flash memory:

Reading | ################################################## | 100% 107.22s

avrdude: writing output file "/Users/chris/test"

avrdude: safemode: lfuse reads as 5E
avrdude: safemode: hfuse reads as 99
avrdude: safemode: efuse reads as F3
avrdude: safemode: Fuses OK (H:F3, E:99, L:5E)

avrdude done. Thank you.


Any ideas? thx much
  • 0

4lathe
Waiting to connect to printer...
 
Posts: 6
Joined: 2017-Jan-Mon-22-Jan
Reputation: 0

Bricked Printrboard - Help Pls.

Sponsor

Sponsor
 

Re: Bricked Printrboard - Help Pls.

Postby Mooselake » 2017-Jan-Wed-14-Jan

Why did you try to update the firmware? Were you having problems? What were they?

Kirk
  • 0

Modified KickStarter Classic Plus 7/2012
KS Thingybot Delta Pro 10/31/16
User avatar
Mooselake
My next printer is...
 
Posts: 3430
Joined: 2011-Dec-Tue-23-Dec
Location: Moose Swamp, Upper Michigan, USA
Reputation: 167

Re: Bricked Printrboard - Help Pls.

Postby 4lathe » 2017-Jan-Wed-19-Jan

I wasn't having a problem but was anticipating adding a seconextruder and wanted to make sure I could successfully flash the firmware.
  • 0

4lathe
Waiting to connect to printer...
 
Posts: 6
Joined: 2017-Jan-Mon-22-Jan
Reputation: 0

Re: Bricked Printrboard - Help Pls.

Postby 4lathe » 2017-Jan-Wed-20-Jan

I did just note one interesting thing.

I have never flashed the fuses but as you can see from my post, Lfuse reads as 5E, Hfuse as 99 and Efuse as F3 when using that avrdude command

The printrboard page at reprap says to use the following command for DFU boot loader;
avrdude -c usbtiny -p at90usb1286 -U lfuse:w:0x5E:m -U hfuse:w:0x99:m -U efuse:w:0xF3:m


If I run this command you can see the conflicting results where Hfuse and Efuse are reversed from the reprap page command.

avrdude -p at90usb1286 -c usbtiny -U flash:r:"/Users/chris/test":h

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9782
avrdude: reading flash memory:

Reading | ################################################## | 100% 109.46s

avrdude: writing output file "/Users/chris/test"

avrdude: safemode: Fuses OK (H:F3, E:99, L:5E)

avrdude done. Thank you.
  • 0

4lathe
Waiting to connect to printer...
 
Posts: 6
Joined: 2017-Jan-Mon-22-Jan
Reputation: 0


Return to Hack talk

Who is online

Users browsing this forum: No registered users and 1 guest