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
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to