[bug #49898] Config file error for many parts

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #49898] Config file error for many parts

Matthijs Kooijman-2
URL:
  <http://savannah.nongnu.org/bugs/?49898>

                 Summary: Config file error for many parts
                 Project: AVR Downloader/UploaDEr
            Submitted by: owenduffy
            Submitted on: Wed 21 Dec 2016 03:11:01 AM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Owen
        Originator Email:
             Open/Closed: Open
                 Release: 6.3
         Discussion Lock: Any
     Programmer hardware: USBASP
             Device type: m328

    _______________________________________________________

Details:

Verify error setting efuse to 0x05.

It seems that the config file contains:
memory "efuse"
    size = 1;
    min_write_delay = 4500;
    max_write_delay = 4500;
    read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
           "x x x x x x x x o o o o o o o o";

    write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
              "x x x x x x x x x x x x x i i i";
    ;

Which I think causes it to write 0x05, and read back 8 bits incl unimplemented
bits as report as 0xfd which of course does not verify.

This looks like a global change that has messed up lots of the config file, do
a diff with v6.1 and you will not what has happened.

Meanwhile, 6.1 looks the best version out there.

Owen




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #49898] Config file error for many parts

Matthijs Kooijman-2
Update of bug #49898 (project avrdude):

                  Status:                    None => Duplicate              

    _______________________________________________________

Follow-up Comment #1:

This seems to be a duplicate of bug #22248 to me.

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #49898] Config file error for many parts

Matthijs Kooijman-2
Follow-up Comment #2, bug #49898 (project avrdude):

I read most of the long discussion.

For as long as I can remember, the Atmel tools have required the user to
specify ONLY the implemented bits for the example case I gave, three bits.
They do not state in the datasheet that the user must specify unimplemented
bits at 1, but they do hint that they will read back as one (because being
unimplemented, the should always be 'unprogrammed'.

In Atmel's tools if I select BOD=2.7 from the feature selection, it calculates
and shows efuse=0x05, and if programmed, that WILL verify.

That is all rational.

It seems that recently, AVRDUDE's direction is to mask out ONLY three bits
from user supplied efuse parm (for this part), but include 8 bits read back
from the part for verification. Why verify bits that the user did not
specify.

AVRDUDE has changed to strike out on its own, it requires a different efuse
specification than the Atmel tools display... not for programming the fuse
correctly, but purely for verification.

Most tools follow Atmel's lead, eg http://www.engbedded.com/fusecalc/ .

I think you have made a mistake, the solution for users who want consistency
with Atmel and compatibility with all the existing scripts, makefiles and
project documentation seems to be v6.1.


    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev