osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: Re: AT90PWM316 support - msg#00015

List: hardware.avr.avrdude.devel

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

On Dec 11, 2007 9:22 PM, Dave N6NZ <n6nz@xxxxxxxx> wrote:
> Shaun Jackman wrote:
> > I could, but it's a bit of a hack. =) I was hoping that the avrdude
> > part descriptions were somehow generated from the Atmel XML
> > description files, which would probably be more accurate than me
> > playing Dr. Frankenstein with the AT90PWM3B and ATmega16 parts. How
> > are the avrdude part descriptions usually generated?
>
> Isn't there a script in the part descriptions directory to convert the
> XML? I did a couple of parts once, long enough ago that my memory is
> foggy... but I think I did them by hand and then somebody told be about
> the script so I diff'ed the output and uncovered a subtle bug in my
> hand generated data.

Thanks for the pointer. I checked the output of get-dw-params.xsl and
get-hv-params.xsl against my Dr. Frankenstein AT90PWM316 part
description and it matched.

With xsltproc 1.1.19 I had to patch both scripts before they would
work though. The patch follows.

Cheers,
Shaun

Index: tools/get-dw-params.xsl
===================================================================
RCS file: /sources/avrdude/avrdude/tools/get-dw-params.xsl,v
retrieving revision 1.2
diff -u -p -r1.2 get-dw-params.xsl
--- tools/get-dw-params.xsl 23 Nov 2006 07:07:06 -0000 1.2
+++ tools/get-dw-params.xsl 13 Dec 2007 21:36:08 -0000
@@ -112,6 +112,7 @@
<!-- recursively then until everything has been done -->
<xsl:template name="format-hex">
<xsl:param name="arg" />
+ <xsl:param name="count" />
<xsl:choose>
<xsl:when test="string-length($arg) &lt;= 4">
<!-- Last element, print it, and leave template. -->
Index: tools/get-hv-params.xsl
===================================================================
RCS file: /sources/avrdude/avrdude/tools/get-hv-params.xsl,v
retrieving revision 1.2
diff -u -p -r1.2 get-hv-params.xsl
--- tools/get-hv-params.xsl 13 Aug 2006 21:57:52 -0000 1.2
+++ tools/get-hv-params.xsl 13 Dec 2007 21:36:08 -0000
@@ -219,6 +219,7 @@
-->
<xsl:template name="format_cstack">
<xsl:param name="stack" />
+ <xsl:param name="count" />
<xsl:choose>
<xsl:when test="string-length($stack) &lt;= 4">
<!-- Last element, print it, and leave template. -->


Thread at a glance:

Previous Message by Date:

Re: Re: AT90PWM316 support

On Dec 11, 2007 9:02 PM, Weddington, Eric <eweddington@xxxxxxxxxxxxx> wrote: > > > Cool. :-) Can you work up a patch and submit? > > > > I could, but it's a bit of a hack. =) I was hoping that the avrdude > > part descriptions were somehow generated from the Atmel XML > > description files, > > Well, um, that's the ultimate goal. Eventually. ;-) > > >which would probably be more accurate than me > > playing Dr. Frankenstein with the AT90PWM3B and ATmega16 parts. How > > are the avrdude part descriptions usually generated? > > AFAIK, by the hand of Frankenstein. By all means, Doctor, go ahead. ;-) I've submitted bug #21797 which adds support for the AT90PWM316 to avrdude.conf. When this patch is applied, could you also look at bug #21663 which fixes the EFUSE for the AT90PWM2, AT90PWM2B, AT90PWM3, and AT90PWM3B parts. Cheers, Shaun

Next Message by Date:

[bug #21798] Fix both XSLT scripts

URL: <http://savannah.nongnu.org/bugs/?21798> Summary: Fix both XSLT scripts Project: AVR Downloader/UploaDEr Submitted by: sjackman Submitted on: Thursday 12/13/2007 at 21:40 Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Shaun Jackman Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: I needed to patch both XSLT scripts for them to work with xsltproc 1.1.19. Cheers, Shaun 2007-12-13 Shaun Jackman <sjackman@xxxxxxxxx> * tools/get-dw-params.xsl (format-hex): Add the parameter count. * tools/get-hv-params.xsl (format_cstack): Ditto. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thursday 12/13/2007 at 21:40 Name: avrdude-xslt.diff Size: 1kB By: sjackman <http://savannah.nongnu.org/bugs/download.php?file_id=14624> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?21798> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/

Previous Message by Thread:

Re: Re: AT90PWM316 support

Weddington, Eric wrote: -----Original Message----- From: avrdude-dev-bounces+eweddington=cso.atmel.com@xxxxxxxxxx [mailto:avrdude-dev-bounces+eweddington=cso.atmel.com@xxxxxxxx rg] On Behalf Of Dave N6NZ Sent: Tuesday, December 11, 2007 9:23 PM To: Shaun Jackman; avrdude-dev@xxxxxxxxxx Subject: Re: [avrdude-dev] Re: AT90PWM316 support Isn't there a script in the part descriptions directory to convert the XML? I did a couple of parts once, long enough ago that my memory is foggy... but I think I did them by hand and then somebody told be about the script so I diff'ed the output and uncovered a subtle bug in my hand generated data. Sure, could be right. Joerg is the avrdude expert here. Yes, of course, I should have said "Joerg" instead of "somebody" because that is surely who it was. -dave Eric W.

Next Message by Thread:

No support for Atmega169p in 5.5

Hi All Is there a version that has Atmega169p support? If not how do I add it? Regards __ Ormund
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!