Menu

Help with the fuses

2012-12-18
2013-01-24
  • Nick Metcalfe

    Nick Metcalfe - 2012-12-18

    As the fuses are created using an automated tool I am not so confident they are correct. This applies mainly to the default values.

    If any errors or omissions are spotted, please post a correction here (don't just say it's wrong, please help by confirming what it should be.) All such corrections will be applied to an "Official fuse database" to be incorporated into the next version.

     
  • Nick Metcalfe

    Nick Metcalfe - 2012-12-18

    ATXMega fuse default values - I know these are wrong. Unfortunately I cannot find a suitable data source for them, or even where in the datasheet stack it says what they might be.

    If anybody knows of a source for this information I would be delighted to hear of it.

     
  • Zajc3w

    Zajc3w - 2013-01-20

    Atxmega128a4u is missing fusebyte0.
    default values should be:
    fusebyte0 = 0x00 (jtag device adress)
    fusebyte1 = 0x00
    fusebyte2 = 0xFF
    fusebyte4 = 0xFE
    fusebyte5 - is not specified in documentation i'll have this chip tommorow.
    Lockbits = 0xFF

    Btw best AVRdude GUI i've ever seen.

     

    Last edit: Zajc3w 2013-01-22
    • Nick Metcalfe

      Nick Metcalfe - 2013-01-22

      Thanks Zajc3w. This probably means all the following devices should have a fusebyte0 as well.

      ATXMEGA128A4
      ATXMEGA128A4U
      ATXMEGA128C3
      ATXMEGA128D4
      ATXMEGA16A4U
      ATXMEGA16C4
      ATXMEGA192C3
      ATXMEGA256C3
      ATXMEGA32A4U
      ATXMEGA32C4
      ATXMEGA384C3
      ATXMEGA384D3
      ATXMEGA64A4
      ATXMEGA64A4U
      ATXMEGA64C3
      ATXMEGA64D4

      The converter went a bit rogue here. I will have to spend some time with the datasheets. I am back at work now so not much time for programming. If there is a device in this list you want to use now you can use the database editor to add a fusebyte0.

       
  • Zajc3w

    Zajc3w - 2013-01-22

    I would love to help You, but my windows coding skills are less than basic. And now i have to figure out how to program atxmega128a4u without buying avrispII.

     

    Last edit: Zajc3w 2013-01-22
  • Nick Metcalfe

    Nick Metcalfe - 2013-01-23

    It's pretty easy to make a dedicated avrispII out of a mega8535 (or with some tweaking most any AVR with enough memory and I/O). You could bootstrap it with your avrisp. See Evertool http://www.siwawi.arubi.uni-kl.de/avr_projects/evertool/index.html for an example. I have built a bluetooth programmer based on the avrisp section of this project and can confirm it works perfectly, and can even be made to work in AVR studio 6. Mind you, I still prefer AVRdude :-)

    The most useful and flexible (and easiest to build) programmer is probably a bog-standard Arduino. Check out http://arduino.cc/en/Tutorial/ArduinoISP

     
  • Zajc3w

    Zajc3w - 2013-01-23

    I have USBASP for ISP programming. I need something to progam Xmegas with PDI protocol/interface.

     

    Last edit: Zajc3w 2013-01-23
  • Nick Metcalfe

    Nick Metcalfe - 2013-01-24

    So ISP will not work on Xmegas? I am not familiar with PDI. I think one can use JTAG on the Xmegas? If so then a jtagice workalike might be a good choice for a homebrew Xmega programmer.

     
  • Zajc3w

    Zajc3w - 2013-01-24

    Xmegas use new programming interface: PDI There is a patch for USBASP that apparently work with ATXmegas16d. and 64d.., but i ghad no luck. There is a Bug reported for AVRDUDE about subfamily A4U incompatibility. So i have 5 options:
    1 Buy atmel's ISP mk2 ~26 GBP +VAT
    2 Buy atmel's DRAGON ~37 GBP +VAT
    3 write my own programmer
    4 wait for new AVRDUDE (last update took 1.5 year).
    5 go wild and buy AVRONE ~500 GBP +VAT ;P
    JtagICE mk1(the one with atmega16) is useless with xmegas. BTW A4U subfamily has no JTAG interface(at least i can't find any jtag pins functions in datasheets) - tradeof for having USB??

     
  • Zajc3w

    Zajc3w - 2013-01-24

    Xmegas use new programming interface: PDI There is a patch for USBASP that apparently work with ATXmegas16d. and 64d.., but i ghad no luck. There is a Bug reported for AVRDUDE about subfamily A4U incompatibility. So i have 5 options:
    1 Buy atmel's ISP mk2 ~26 GBP +VAT
    2 Buy atmel's DRAGON ~37 GBP +VAT
    3 write my own programmer
    4 wait for new AVRDUDE (last update took 1.5 year).
    5 go wild and buy AVRONE ~500 GBP +VAT ;P
    JtagICE mk1(the one with atmega16) is useless with xmegas. BTW A4U subfamily has no JTAG interface(at least i can't find any jtag pins functions in datasheets) - tradeof for having USB??

     

Log in to post a comment.