avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] problem erasing flash memory (xmega32A4 and AVRISP mkII)


From: fgd
Subject: [avrdude-dev] problem erasing flash memory (xmega32A4 and AVRISP mkII)
Date: Wed, 17 Feb 2010 03:25:18 -0800 (PST)

Hello, 
I'm using avrdude 5.10 to program an atxmega32A4 using the AVRISP mkII, and
although I can successfully program it, I've found that it acts quite
"funny", there's several issues and I don't know if they are all related or
maybe they are independent problems...

First, avrdude is always reading 000000 as the device signature, but if I
use the -F option, it will work. The strange part is that if in terminal
mode I use the "sig" command, or read the signature area, it reads the
signature ok.

Then, erasing flash memory before programming doesn't seem to work. I've
made it work by entering terminal mode and using the "erase" command, but if
I simply use the -e parameter in the avrdude command it doesn't work, well,
it says it has worked, but then when it writes to flash memory the data
verification fails, I think that it is because the memory wasn't properly
erased before but I could be wrong.

And last, I'm not able to access some of the memory areas that are supposed
to be there (I wasn't going to use them yet, but who knows...) ...it says it
has the following areas: eeprom, application, apptable, boot, flash,
prodsig, usersig, signature, fuse0, fuse1, fuse2, fuse4, fuse5 and lock, but
application, apptable, prodsig, and lock can't be accessed, I will post here
some transcript of what is happening (in terminal mode):

$ avrdude -p x32a4 -c avrispmkII -P usb -tuF

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATXMEGA32A4 is 1E 95 41
avrdude> sig
>>> sig

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

Device signature = 0x1e9541

avrdude> part
>>> part

AVR Part                      : ATXMEGA32A4
Chip Erase delay              : 0 us
PAGEL                         : P00
BS2                           : P00
RESET disposition             : dedicated
RETRY pulse                   : SCK
serial program mode           : yes
parallel program mode         : yes
Timeout                       : 0
StabDelay                     : 0
CmdexeDelay                   : 0
SyncLoops                     : 0
ByteDelay                     : 0
PollIndex                     : 0
PollValue                     : 0x00
Memory Detail                 :

                         Block Poll               Page
Polled
  Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW
ReadBack
  ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- -----
---------
  eeprom         0     0     0    0 no       1024   32      0     0     0
0x00
0x00
  application    0     0     0    0 no      32768  256      0     0     0
0x00
0x00
  apptable       0     0     0    0 no       4096  256      0     0     0
0x00
0x00
  boot           0     0     0    0 no       4096  256      0     0     0
0x00
0x00
  flash          0     0     0    0 no      36864  256      0     0     0
0x00
0x00
  prodsig        0     0     0    0 no        512  256      0     0     0
0x00
0x00
  usersig        0     0     0    0 no        512  256      0     0     0
0x00
0x00
  signature      0     0     0    0 no          3    0      0     0     0
0x00
0x00
  fuse0          0     0     0    0 no          1    0      0     0     0
0x00
0x00
  fuse1          0     0     0    0 no          1    0      0     0     0
0x00
0x00
  fuse2          0     0     0    0 no          1    0      0     0     0
0x00
0x00
  fuse4          0     0     0    0 no          1    0      0     0     0
0x00
0x00
  fuse5          0     0     0    0 no          1    0      0     0     0
0x00
0x00
  lock           0     0     0    0 no          1    0      0     0     0
0x00
0x00

avrdude> dump eeprom 0 16
>>> dump eeprom 0 16
0000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

avrdude> dump application 0 16
>>> dump application 0 16
avrdude: stk600_xprog_read_byte(): unknown memory "application"
error reading application address 0x00000 of part ATXMEGA32A4
read operation not supported on memory type "application"

avrdude> dump apptable 0 16
>>> dump apptable 0 16
avrdude: stk600_xprog_read_byte(): unknown memory "apptable"
error reading apptable address 0x00000 of part ATXMEGA32A4
read operation not supported on memory type "apptable"
avrdude> dump boot 0 16

>>> dump boot 0 16
0000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

avrdude> dump flash 0 16
>>> dump flash 0 16
0000  0c 94 2a 00 0c 94 47 00  0c 94 47 00 0c 94 47 00  | .*. .G. .G. .G.|

avrdude> dump prodsig 0 16
>>> dump prodsig 0 16
avrdude: stk600_xprog_read_byte(): unknown memory "prodsig"
error reading prodsig address 0x00000 of part ATXMEGA32A4
read operation not supported on memory type "prodsig"

avrdude> dump usersig 0 16
>>> dump usersig 0 16
0000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

avrdude> dump signature
>>> dump signature
0000  1e 95 41                                          |..A             |

avrdude> dump fuse0
>>> dump fuse0
0000  ff                                                |.               |

avrdude> dump fuse1
>>> dump fuse1
0000  66                                                |f               |

avrdude> dump fuse2
>>> dump fuse2
0000  ff                                                |.               |

avrdude> dump fuse4
>>> dump fuse4
0000  f3                                                |.               |

avrdude> dump fuse5
>>> dump fuse5
0000  ea                                                |.               |

avrdude> dump lock
>>> dump lock
avrdude: stk600_xprog_read_byte(): unknown memory "lock"
error reading lock address 0x00000 of part ATXMEGA32A4
read operation not supported on memory type "lock"

avrdude> quit


thanks a lot for your help, regards
Fernando

-- 
View this message in context: 
http://old.nabble.com/problem-erasing-flash-memory-%28xmega32A4-and-AVRISP-mkII%29-tp27620931p27620931.html
Sent from the AVR - AVRdude - Dev mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]