[bug #36350] FUSE4_DEFAULT wrong for Xmega A devices

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

[bug #36350] FUSE4_DEFAULT wrong for Xmega A devices

Kevin Cuzner-2
URL:
  <http://savannah.nongnu.org/bugs/?36350>

                 Summary: FUSE4_DEFAULT wrong for Xmega A devices
                 Project: AVR C Runtime Library
            Submitted by: joerg_wunsch
            Submitted on: Mon 30 Apr 2012 01:50:42 PM CEST
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.1
           Fixed Release: None

    _______________________________________________________

Details:

j@uriah 55% fgrep FUSE4_DEFAULT include/avr/iox*
include/avr/iox128a1.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox128a3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox128d3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox16a4.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox16d4.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox192a3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox192d3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox256a3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox256a3b.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox256d3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox32a4.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox32d4.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox64a1.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox64a3.h:#define FUSE4_DEFAULT  (0xFF)
include/avr/iox64d3.h:#define FUSE4_DEFAULT  (0xFF)

Xmega A (as well as Xmega B) device have JTAGEN programmed in
FUSE4, so their default ought to be 0xFE.

This bug results in an application using:

FUSES =
    {
        .FUSEBYTE0 = FUSE0_DEFAULT,
        .FUSEBYTE1 = FUSE1_DEFAULT,
        .FUSEBYTE2 = FUSE2_DEFAULT,
        .FUSEBYTE4 = FUSE4_DEFAULT,
        .FUSEBYTE5 = FUSE5_DEFAULT,
    };

and then accidentally programming all fuses (like through the
"ELF production file" in AVR Studio) in a batch erroneously
turngin off their JTAG access.




    _______________________________________________________

Reply to this item at:

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

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


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

[bug #36350] FUSE4_DEFAULT wrong for Xmega A devices

Kevin Cuzner-2
Update of bug #36350 (project avr-libc):

                Priority:              5 - Normal => 9 - Immediate          


    _______________________________________________________

Reply to this item at:

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

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


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

[bug #36350] FUSE4_DEFAULT wrong for Xmega A devices

Kevin Cuzner-2
Follow-up Comment #1, bug #36350 (project avr-libc):

While you're at it, It seems to me that FUSE1_DEFAULT is also incorrect.
in iox128a1.h, it is defined as 0xFF
However, the xmega manual describes it to be 0x00.
Unfortunately I don't have hardware to verify this.

    _______________________________________________________

Reply to this item at:

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

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


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

[bug #36350] FUSE4_DEFAULT wrong for Xmega A devices

Kevin Cuzner-2
Follow-up Comment #2, bug #36350 (project avr-libc):

Just FYI, here's what I read off a fresh 128a3u that I've never messed with
the fuses on:

fuse0: 0xff
fuse1: 0x00
fuse2: 0xff
fuse4: 0xfe
fuse5: 0xff

    _______________________________________________________

Reply to this item at:

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

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


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

[bug #36350] FUSE4_DEFAULT wrong for Xmega A devices

Kevin Cuzner-2
Follow-up Comment #3, bug #36350 (project avr-libc):

I see these on a fresh xmega32a4u:

fuse1: 0x00
fuse2: 0xff
fuse4: 0xfe
fuse5: 0xff

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?36350>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


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