avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] Re: avrdude: stk500v2_paged_write: write instruction n


From: Colin O'Flynn
Subject: Re: [avrdude-dev] Re: avrdude: stk500v2_paged_write: write instruction not defined for part
Date: Sun, 04 Dec 2005 10:05:54 -0400
User-agent: KMail/1.8.2

Hey,

The commands to us the m162 on the STK500v2 aren't in the avrdude.conf file, 
so v 2.0 is a no-go.

However if someone told me what these four values come from (ignore the 
numbers):

        mode            = 0x41;
        delay           = 20;
        blocksize       = 4;
        readsize        = 256;

I could add v2 support for you. But I'm not sure what they do mean....

 -Colin

On Thursday 01 December 2005 07:14, Esben H. Østergaard wrote:
> I see that in the output from avrdude given in my previous post, the fuses
> were not read correctly. This is probably due to some messing around to get
> stuff to work. I get the same "write instruction not defined for part"
> error when the fuses are read correctly, as given below in this post.
>
> I have still not succeeded in programming the ATmega162 with avrdude. The
> AT90S8515 works fine with avrdude, and ATmega162 works fine with AVR
> studio.
>
> But other people seems to have had succes with the ATmega162, STK500 and
> avrdude, but perhaps that is using older versins of avrdude and/or STK500.
> (?)
>
> Esben
>
>
> avrdude -p m162 -P /dev/ttyS0 -c stk500v2 -v -U flash:w:rom.hex
>
> avrdude: Version 5.0
>          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
>
>          System wide configuration file is "/usr/local/etc/avrdude.conf"
>          User configuration file is "/home/esben/.avrduderc"
>          User configuration file does not exist or is not a regular file,
> skipping
>
>          Using Port            : /dev/ttyS0
>          Using Programmer      : stk500v2
>          AVR Part              : ATMEGA162
>          Chip Erase delay      : 9000 us
>          PAGEL                 : P00
>          BS2                   : P00
>          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
>            ----------- ---- ----- ----- ---- ------ ------ ---- ------
> ----- ----- ---------
>            flash          0     0     0    0 yes     16384  128    128 
> 4500 4500 0xff 0xff
>            eeprom        65    20     4    0 no        512    4      0 
> 9000 9000 0xff 0xff
>            lfuse          0     0     0    0 no          1    0      0
> 16000 16000 0x00 0x00
>            hfuse          0     0     0    0 no          1    0      0
> 16000 16000 0x00 0x00
>            efuse          0     0     0    0 no          1    0      0
> 16000 16000 0x00 0x00
>            lock           0     0     0    0 no          1    0      0
> 16000 16000 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 : STK500V2
>          Description     : Atmel STK500 V2
>          Hardware Version: 2
>          Firmware Version: 2.1
>          Topcard         : Unknown
>          Vtarget         : 5.0 V
>          Varef           : 5.0 V
>          Oscillator      : 3.686 MHz
>          SCK period      : 10.9 us
>
> avrdude: AVR device initialized and ready to accept instructions
>
> Reading | ################################################## | 100% 0.01s
>
> avrdude: Device signature = 0x1e9404
> avrdude: safemode: lfuse reads as FF
> avrdude: safemode: hfuse reads as 99
> avrdude: safemode: efuse reads as FF
> 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: reading input file "rom.hex"
> avrdude: input file rom.hex auto detected as Intel Hex
> avrdude: writing flash (1762 bytes):
>
> Writing |                                                    | 0%
> 0.00savrdude: stk500v2_paged_write: write instruction not defined for part
> "ATMEGA162" Writing | ################################################## |
> 100% 0.00s
>
> avrdude: failed to write flash memory, rc=-1
>
> avrdude: safemode: lfuse reads as FF
> avrdude: safemode: hfuse reads as 99
> avrdude: safemode: efuse reads as FF
> avrdude: safemode: Fuses OK
>
> avrdude done.  Thank you.
>
>
>
>
> _______________________________________________
> avrdude-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avrdude-dev




reply via email to

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