URL:
  <http://savannah.nongnu.org/bugs/?21152>

                 Summary: Unable to program atmega324p with avrdude 5.4 and
AVRISP using default configuration file.
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Tuesday 09/25/2007 at 00:42 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Mark Moss
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

If I try to perform any operation on an atmega324p using the default
configuration file that comes with avrdude 5.4, I get the following error:

[EMAIL PROTECTED]:~$ avrdude /dev/ttyS0 -p m324p -c avrisp -U
hfuse:r:test.txt:h
>
> avrdude: stk500_program_enable(): no device
> avrdude: initialization failed, rc=-1
>          Double check connections and try again, or use -F to override
>          this check.
>
>
> avrdude done.  Thank you
>

If I uncomment the stk500_devcode line in the m324p part section of
avrdude.conf, everything works as expected.

[EMAIL PROTECTED]:~$ avrdude /dev/ttyS0 -p m324p -c avrisp -U
hfuse:r:test.txt:h
>
> avrdude: AVR device initialized and ready to accept instructions
>
> Reading | ################################################## | 100% 0.02s
>
> avrdude: Device signature = 0x1e9508
> avrdude: reading hfuse memory:
>
> Reading | ################################################## | 100% 0.01s
>
> avrdude: writing output file "test.txt"
>
> avrdude: safemode: Fuses OK
>
> avrdude done.  Thank you.
>

So far, I haven't noticed any problems.  Firmware downloaded to the part
verifies and executes (AFAIK. I haven't done any exhaustive testing) fine.

I've included a patch to uncomment the STK500_devcode line in the default
configuration file.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tuesday 09/25/2007 at 00:42 UTC  Name: ATMEGA324P STK500 Devcode.patch 
Size: 463B   By: None
Patch to uncomment the ATMEGA324P's STK500_devcode line in the default
configuration file.
<http://savannah.nongnu.org/bugs/download.php?file_id=14024>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?21152>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
avrdude-dev mailing list
avrdude-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to