[patch #9506] Script to create device configuration stub from Atmel ATDF files

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

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
URL:
  <http://savannah.nongnu.org/patch/?9506>

                 Summary: Script to create device configuration stub from
Atmel ATDF files
                 Project: AVR Downloader/UploaDEr
            Submitted by: xoriath
            Submitted on: Thu 30 Nov 2017 03:20:08 PM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

XSLT2 script to create the device configuration for avrdude based on ATDF.

Currently only supports the new AVR8X architecture. Writes the part info and
flash and eeprom memory information.

When run agains the ATtiny817 ATDF file from Atmel Studio, it produces:

#------------------------------------------------------------
# ATtiny817
#------------------------------------------------------------

part parent    ".avr8x"
     id        = "tn817";
     desc      = "ATtiny817";
     signature = 0x1E 0x93 0x20;

     memory "flash"
          size      = 0x2000;
          offset    = 0x8000;
          page_size = 0x40;
          readsize  = 0x100;
     ;

     memory "eeprom"
          size      = 0x80;
          offset    = 0x1400;
          page_size = 0x20;
          readsize  = 0x100;
     ;
;


Will run this on the new AVR8X devices that should be supported from
https://savannah.nongnu.org/patch/index.php?9482 .



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 30 Nov 2017 03:20:08 PM UTC  Name: atdf-to-avrdude.xslt  Size: 8KiB
 By: xoriath

<http://savannah.nongnu.org/patch/download.php?file_id=42531>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Additional Item Attachment, patch #9506 (project avrdude):

File name: atdf-to-avrdude.xslt           Size:8 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Follow-up Comment #1, patch #9506 (project avrdude):

Added patch for rest of AVR8X devices (and updated XSLT to indent correctly
for the template)

(file #42533, file #42534)
    _______________________________________________________

Additional Item Attachment:

File name: avrdude.conf.in.avr8x.patch    Size:10 KB
File name: atdf-to-avrdude.xslt           Size:8 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Additional Item Attachment, patch #9506 (project avrdude):

File name: atdf-to-avrdude.xslt           Size:9 KB
File name: avrdude.conf.in.avr8x.patch    Size:17 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Follow-up Comment #2, patch #9506 (project avrdude):

Updated patches with changes needed for
https://savannah.nongnu.org/patch/?9507, added more devices and corrected id
prefix for tiny's.

(file #42800, file #42801)

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Follow-up Comment #3, patch #9506 (project avrdude):

Thanks for the script!

I'd appreciate some kind of redistributions conditions for it.
By default, no permission is granted, so I could thus not
include it into the AVRDUDE source code (though I could, of
course, keep it sitting here in the tracker, and just use it
to generate new avrdude.conf snippets ;-).

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Update of patch #9506 (project avrdude):

                  Status:                    None => In Progress            
             Assigned to:                    None => joerg_wunsch          

    _______________________________________________________

Follow-up Comment #4:

New config file committed in r1405.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Follow-up Comment #5, patch #9506 (project avrdude):

Hehe, I've reuploaded the XSLT under GPL (blatantly copied from the jtagice3.h
file, just to be consistent).

Would there be need to support xmega/avr8 etc? New devices should come in the
AVR8X style, which 'should' just work...

(file #42880)
    _______________________________________________________

Additional Item Attachment:

File name: atdf-to-avrdude.xslt           Size:9 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

_______________________________________________
  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
|

[patch #9506] Script to create device configuration stub from Atmel ATDF files

Joerg Wunsch-6
Update of patch #9506 (project avrdude):

                  Status:             In Progress => Done                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #6:

Thanks for updating it, committed in r1406.

I don't think it needs to handle older architectures as well,
most of that is covered already.  Even if so, it's not too
hard to me to extend it myself if needed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9506>

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


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