Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AvrDude Error
# Note: This still happens without spifreq being set. The only way I was able to dump my flash was with nopagedread
avrdude -c buspirate -P /dev/ttyUSB0 -p m1284p -U flash:r:factory-flash.bin:r -x spifreq=4 -vv
avrdude: Version 6.3-20160220, compiled on Jul 28 2017 at 21:03:06
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 "/home/unknown/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB0
Using Programmer : buspirate
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 : BusPirate
Description : The Bus Pirate
Attempting to initiate BusPirate binary mode...
BusPirate binmode version: 1
BusPirate SPI version: 1
avrdude: Paged flash write enabled.
AVR Extended Commands version 1
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.09s
avrdude: Device signature = 0x1e9705 (probably m1284p)
avrdude: safemode: lfuse reads as D6
avrdude: safemode: hfuse reads as DC
avrdude: safemode: efuse reads as FD
avrdude: reading flash memory:
Reading | | 0% 0.00sBusPirate: buspirate_paged_load(..,flash,256,0,256)
BusPirate: buspirate_paged_load(..,flash,256,256,256)
BusPirate: buspirate_paged_load(..,flash,256,512,256)
BusPirate: buspirate_paged_load(..,flash,256,768,256)
BusPirate: buspirate_paged_load(..,flash,256,1024,256)
BusPirate: buspirate_paged_load(..,flash,256,1280,256)
Reading | # | 1% 0.23sBusPirate: buspirate_paged_load(..,flash,256,1536,256)
BusPirate: buspirate_paged_load(..,flash,256,1792,256)
BusPirate: buspirate_paged_load(..,flash,256,2048,256)
BusPirate: buspirate_paged_load(..,flash,256,2304,256)
BusPirate: buspirate_paged_load(..,flash,256,2560,256)
Reading | # | 2% 0.42sBusPirate: buspirate_paged_load(..,flash,256,2816,256)
BusPirate: buspirate_paged_load(..,flash,256,3072,256)
BusPirate: buspirate_paged_load(..,flash,256,3328,256)
BusPirate: buspirate_paged_load(..,flash,256,3584,256)
BusPirate: buspirate_paged_load(..,flash,256,3840,256)
Reading | ## | 3% 0.61sBusPirate: buspirate_paged_load(..,flash,256,4096,256)
BusPirate: buspirate_paged_load(..,flash,256,4352,256)
BusPirate: buspirate_paged_load(..,flash,256,4608,256)
BusPirate: buspirate_paged_load(..,flash,256,4864,256)
BusPirate: buspirate_paged_load(..,flash,256,5120,256)
Reading | ## | 4% 0.80sBusPirate: buspirate_paged_load(..,flash,256,5376,256)
BusPirate: buspirate_paged_load(..,flash,256,5632,256)
BusPirate: buspirate_paged_load(..,flash,256,5888,256)
BusPirate: buspirate_paged_load(..,flash,256,6144,256)
BusPirate: buspirate_paged_load(..,flash,256,6400,256)
Reading | ### | 5% 0.99sBusPirate: buspirate_paged_load(..,flash,256,6656,256)
BusPirate: buspirate_paged_load(..,flash,256,6912,256)
BusPirate: buspirate_paged_load(..,flash,256,7168,256)
BusPirate: buspirate_paged_load(..,flash,256,7424,256)
BusPirate: buspirate_paged_load(..,flash,256,7680,256)
Reading | ### | 6% 1.18sBusPirate: buspirate_paged_load(..,flash,256,7936,256)
BusPirate: buspirate_paged_load(..,flash,256,8192,256)
BusPirate: buspirate_paged_load(..,flash,256,8448,256)
BusPirate: buspirate_paged_load(..,flash,256,8704,256)
BusPirate: buspirate_paged_load(..,flash,256,8960,256)
Reading | #### | 7% 1.37sBusPirate: buspirate_paged_load(..,flash,256,9216,256)
BusPirate: buspirate_paged_load(..,flash,256,9472,256)
BusPirate: buspirate_paged_load(..,flash,256,9728,256)
BusPirate: buspirate_paged_load(..,flash,256,9984,256)
BusPirate: buspirate_paged_load(..,flash,256,10240,256)
Reading | #### | 8% 1.56sBusPirate: buspirate_paged_load(..,flash,256,10496,256)
BusPirate: buspirate_paged_load(..,flash,256,10752,256)
BusPirate: buspirate_paged_load(..,flash,256,11008,256)
BusPirate: buspirate_paged_load(..,flash,256,11264,256)
BusPirate: buspirate_paged_load(..,flash,256,11520,256)
BusPirate: buspirate_paged_load(..,flash,256,11776,256)
Reading | ##### | 9% 1.79sBusPirate: buspirate_paged_load(..,flash,256,12032,256)
BusPirate: buspirate_paged_load(..,flash,256,12288,256)
BusPirate: buspirate_paged_load(..,flash,256,12544,256)
BusPirate: buspirate_paged_load(..,flash,256,12800,256)
BusPirate: buspirate_paged_load(..,flash,256,13056,256)
Reading | ##### | 10% 1.98sBusPirate: buspirate_paged_load(..,flash,256,13312,256)
BusPirate: buspirate_paged_load(..,flash,256,13568,256)
BusPirate: buspirate_paged_load(..,flash,256,13824,256)
BusPirate: buspirate_paged_load(..,flash,256,14080,256)
BusPirate: buspirate_paged_load(..,flash,256,14336,256)
Reading | ###### | 11% 2.17sBusPirate: buspirate_paged_load(..,flash,256,14592,256)
BusPirate: buspirate_paged_load(..,flash,256,14848,256)
BusPirate: buspirate_paged_load(..,flash,256,15104,256)
BusPirate: buspirate_paged_load(..,flash,256,15360,256)
BusPirate: buspirate_paged_load(..,flash,256,15616,256)
Reading | ###### | 12% 2.36sBusPirate: buspirate_paged_load(..,flash,256,15872,256)
BusPirate: buspirate_paged_load(..,flash,256,16128,256)
BusPirate: buspirate_paged_load(..,flash,256,16384,256)
BusPirate: buspirate_paged_load(..,flash,256,16640,256)
BusPirate: buspirate_paged_load(..,flash,256,16896,256)
Reading | ####### | 13% 2.55sBusPirate: buspirate_paged_load(..,flash,256,17152,256)
....... THIS REPEATS UNTIL 99 % ........
Reading | ################################################# | 98% 19.11sBusPirate: buspirate_paged_load(..,flash,256,128512,256)
BusPirate: buspirate_paged_load(..,flash,256,128768,256)
BusPirate: buspirate_paged_load(..,flash,256,129024,256)
BusPirate: buspirate_paged_load(..,flash,256,129280,256)
BusPirate: buspirate_paged_load(..,flash,256,129536,256)
Reading | ################################################## | 99% 19.30sBusPirate: buspirate_paged_load(..,flash,256,129792,256)
BusPirate: buspirate_paged_load(..,flash,256,130048,256)
BusPirate: buspirate_paged_load(..,flash,256,130304,256)
BusPirate: buspirate_paged_load(..,flash,256,130560,256)
BusPirate: Paged Read command returned zero.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.