Questions on how to add avr32 support.

View: New views
5 Messages — Rating Filter:   Alert me  

Questions on how to add avr32 support.

by David Hoerl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Group,

I would very much like to get avr32 support in avrdude. I do my work on
the Mac (FreeBSD based), and am not forced to run Parallels/Windows2000
for the sole purpose of running avr32program.

My goal is to support the JTAGICE MKII programmer in USB mode, for the
EVK1100 development board (UC32A0512-U).

While I am learning more everyday on the AVR32 chip, I have absolutely
no exposure to other Atmel products. So, I'm having real problems in
knowing where to start and how to approach the problem.

The first big question:

  - is this primarily a programming job, to add new routines into
avrdude, with some amount of new config options, or is it just adding
new options?


The other issues I am grappling with are, exactly how much different is
the AVR32 from the other micros? Would it be worth my while to look at
some particular older supported chip, and try to use that as a launch point?

Atmel has produced a specific document for programming the AVR32 -
AVR32708 - FLASH JTAG Programming Algorithms. Joerg believes these would
only be of interest to programming box developers, and are not relevant
to the avrdude support per se.

I have the AVR32708 doc on the Atmel JTAGICE mkII. Tobias did a
avr32program trace in 2007 in an attempt to learn how to support AVR32 -
he posted the debug output from avr32program with the actual USB byte
stream (which the latest avr32program does not seem to generate).

So, suppose I now know what commands to send to the JTAGICE - do I need
new subroutines in avrdude to send the same things, or do I leverage off
existing software?

I also found the xml description in the avr32program config file which
is attached below, if it helps anyone.

If anyone has more than a passing interest in this, and would be willing
to assist me (by answering questions) that would be a big help too.

David

dhoerl at mac dot com


Config info used by avr32program:

> <avr32_utils>
>   <device>
>     <part_spec_version version="6"/>
>     <last_upd_date>2008-11-14</last_upd_date>
>     <part_name>UC3A0512</part_name>
>     <jtag_idcode>7900</jtag_idcode>
>     <jtag_revision from="7"/>
>     <flash_read_delay time="1000" to_rev="8"/>
>     <avr_reset domains="5"/>
>     <core_name>STILETTO</core_name>
>     <flashc id="I7503" name="FLASHC" revision="2.0.0" address="0xFFFE1400" page_size="512" pages_pr_region="64" flash_size="524288">
>       <fuses gp_hi_offset="0xC" gp_lo_offset="0x10"/>
>     </flashc>
>     <pm address="0xFFFF0C00"/>
>     <memory>
>       <block name="EBI_CS0" type="EXT_SRAM" address="0xC0000000" size="0x01000000"/>
>       <block name="EBI_CS1" type="EXT_SRAM" address="0xD0000000" size="0x08000000"/>
>       <block name="EBI_CS2" type="EXT_SRAM" address="0xC8000000" size="0x01000000"/>
>       <block name="EBI_CS3" type="EXT_SRAM" address="0xCC000000" size="0x01000000"/>
>       <block name="FLASH" type="FLASH" address="0x80000000" size="0x00080000"/>
>       <block name="SRAM" type="INT_SRAM" address="0x00000000" size="0x00010000"/>
>       <block name="USBB_SLAVE" type="INT_SRAM" address="0xE0000000" size="0x00800000"/>
>     </memory>
>   </device>
> </avr32_utils>



_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

RE: Questions on how to add avr32 support.

by Weddington, Eric :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From:
> avrdude-dev-bounces+eric.weddington=atmel.com@...
> [mailto:avrdude-dev-bounces+eric.weddington=atmel.com@...
> rg] On Behalf Of David Hoerl
> Sent: Saturday, October 03, 2009 12:21 AM
> To: avrdude-dev@...
> Subject: [avrdude-dev] Questions on how to add avr32 support.
>
>
> The other issues I am grappling with are, exactly how much
> different is
> the AVR32 from the other micros? Would it be worth my while
> to look at
> some particular older supported chip, and try to use that as
> a launch point?
>

The AVR32 is very much unlike the AVR. It would probably be best to start with something new.


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: Questions on how to add avr32 support.

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As Weddington, Eric wrote:

> The AVR32 is very much unlike the AVR. It would probably be best to
> start with something new.

OTOH, regardless of how different it is, there's a common subset of
things that can be re-used:

. the entire JTAG ICE mkII protocol handling
. all the generic stuff (memory areas, command-line etc.)

So without me knowing anything about the AVR32, I'd at least give it
a try to add support for it to AVRDUDE.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

RE: Questions on how to add avr32 support.

by Weddington, Eric :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From:
> avrdude-dev-bounces+eric.weddington=atmel.com@...
> [mailto:avrdude-dev-bounces+eric.weddington=atmel.com@...
> rg] On Behalf Of Joerg Wunsch
> Sent: Sunday, October 04, 2009 2:27 PM
> To: avrdude-dev@...
> Subject: Re: [avrdude-dev] Questions on how to add avr32 support.
>
> As Weddington, Eric wrote:
>
> > The AVR32 is very much unlike the AVR. It would probably be best to
> > start with something new.
>
> OTOH, regardless of how different it is, there's a common subset of
> things that can be re-used:
>
> . the entire JTAG ICE mkII protocol handling
> . all the generic stuff (memory areas, command-line etc.)
>
> So without me knowing anything about the AVR32, I'd at least give it
> a try to add support for it to AVRDUDE.

Oh, I'm sorry, I may have misinterpreted the question. Yes I agree with Joerg, that it should be added to avrdude, because of what is common, and not a new project altogether.


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: Questions on how to add avr32 support.

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As Weddington, Eric wrote:

> Oh, I'm sorry, I may have misinterpreted the question. Yes I agree
> with Joerg, that it should be added to avrdude, because of what is
> common, and not a new project altogether.

Given that the names of the memory regions come from the config file,
it's probably even possible to add something like, say, 8051 support.
;-)  But then, this would convert AVRDUDE into uCDUDE :), so I'm not
too keen on that...

But if David could manage it to add AVR32 support without rewriting
the entire AVRDUDE, I think it would really make a nice addition.
--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev