Re: JTAG interface using AT90USB162 mcu

108 views
Skip to first unread message

Casainho

unread,
May 4, 2009, 2:50:42 PM5/4/09
to v.s....@ilmarin.info, myusb-sup...@googlegroups.com, avrop...@googlegroups.com
> I've been developing a USB-JTAG adapter based on AVROpendous board,
> with promary goal of replacing Parallel Port based Wiggler cable. The
> project is here: http://code.google.com/p/opendous-jtag/
> There are patches for openocd and UrJTAG, and I've been able to use it
> for programming Xilinx CPLD using UrJTAG  ( I've only tested the linux
> version)

Hello :-)

Congratulations for your good idea and work!!

I have some ideas for this kind of project: do not use AVR but instead use ARM7.

You are trying to build an Open Hardware debugger/programmer although
you decided to use an AVR which don't have any Open Hardware debugger
:-( -- Atmel uses DebugWire for debug his AVR and is proprietary,
that's why there is no such Open Hardware debugger :-(

Instead you could use an ARM7 (also from Atmel if you prefer), for €18
you can have a board as the AVROpendous but with an ARM7 running at
60MHz, with 256K Bytes Program Flash, 64K Bytes, DMA, etc, and JTAG
connection for programming and debug.

You can buy that board here:
http://www.coolcomponents.co.uk/catalog/product_info.php?cPath=23_29_40&products_id=68

The advantages are obvious.

There is no LUFA for that AT91SAM7Sxxx, but I did offer to Dean (LUFA
developer) that dev. board + USB JTAG dongle in the hope that he ports
LUFA for AT91SAM7.
You can use the code that Atmel provides for USB CDC demo to get the
same results.

And another thing, Matt (Opendous developer) is working on an ARM board (ARM9):
http://code.google.com/p/armopendous/

I would love to have such project with an FAST ARM7, we could then use
that platform to make more faster programmers and debuggers, even try
to "hack" the DebugWire from Atmel.

I am happy to know that we can program FPGA on Linux. I would like to
learn but I couldn't find yet an Open development IDE/tools for Linux.

Good luck :-)

PS: Do you know the USBprog project? they also have JTAG and some code
for DebugWire... ::
http://www.embedded-projects.net/index.php?page_id=165

Casainho

unread,
May 4, 2009, 3:40:19 PM5/4/09
to v.s....@ilmarin.info, AVRopendous, myusb-sup...@googlegroups.com
On Mon, May 4, 2009 at 8:16 PM, Ilmarin <v.s....@ilmarin.info> wrote:
>
> Hello,

>
> On May 4, 2:50 pm, Casainho <casai...@gmail.com> wrote:
>> Congratulations for your good idea and work!!
>>
>> I have some ideas for this kind of project: do not use AVR but instead use ARM7.
>
> Well, then we can just as well use a FT2232D chip just like everybody
> else. Here it's possible to make a JTAG adapter (although slow one)
> for a very little money (i.e chip is ~ 4$ from digikey and you have
> built-in voltage regulator and an oscillator). And it might make sense
> to integrate directly on the board with something more powerful to
> provide an easy-to-use ISP interface. Actually, Coolrunner-II demo-
> board from Xilinix which I am playing with is done in exactly the same
> way - they have a big CPLD chip on it and AT90USB162 with some
> propriatory software for programming it.

>
>> And another thing, Matt (Opendous developer) is working on an ARM board (ARM9):http://code.google.com/p/armopendous/
>>
>> I would love to have such project with an FAST ARM7, we could then use
>> that platform to make more faster programmers and debuggers, even try
>> to "hack" the DebugWire from Atmel.
> Yes, it would be useful

>
>> I am happy to know that we can program FPGA on Linux. I would like to
>> learn but I couldn't find yet an Open development IDE/tools for Linux.
>
> I am using Xilinx ISE WebPack  - they give it away for free, and there
> is also a Linux version (only 32bit though) :
> http://www.xilinx.com/tools/webpack.htm

>
>> PS: Do you know the USBprog project? they also have JTAG and some code
>> for DebugWire... ::http://www.embedded-projects.net/index.php?page_id=165
>
> Yes,I've seen it, but didn't dig into their code - maybe it would be
> possible to merge this project with theirs, eventually?

They use one very well know USB IC. They have also limitations because
they are using on AVR which is not quick nor have much flash memory (I
read somewhere that, probably on their forum).

You know, debug is important, and Dean is using the official hardware
debuger from Atmel, but it was an offer from Atmel! I am not seeing
Dean and other students, and low income people as me, be able to buy
the Atmel JTAGICE MK2. Even If they do, they can burn it and then not
be able to repair as there is no schematics (as it did happen to me at
my daily work).
You can see the plastic case of burned AVRISPMK2, I used it for
AVROpendous ISP programmer:
http://code.google.com/p/avropendous/wiki/AVR_ISP_Programmer

I could help/join you if you chose a fast and powerful ARM. I think
that AT91SAM7Sxxx can be a good choice. I don't understand nothing
about the USB on it, would be important to have the opinion of Dean
about it.

I am sure Matt would like to build and sell this hardware for us and
everybody :-) but for start we can use that cheap dev. board.

I work daily with AVR. I am being working recently and for the first
time with ARM7 and ARM9, both from Atmel and Phillips.

I am working with Matt for the ARMOpendous board, as it will also be
used for the Lyre project
(http://www.rockbox.org/twiki/bin/view/Main/LyreProject) I am being
working since a few months ago.

I am using USB JTAG dongle from Olimex (I believe it have inside that
IC you talked) and OpenOCD.

Casainho

unread,
May 5, 2009, 4:08:42 AM5/5/09
to v.s....@ilmarin.info, AVRopendous, myusb-sup...@googlegroups.com
On Tue, May 5, 2009 at 7:59 AM, Ilmarin <v.s....@ilmarin.info> wrote:
>
> Hello,
>
> So far I've been only testing it with CPLD device , but I got a chance
> to try it with a blackfin board, the speed is very slow:
>
> (gdb) load u-boot
> Loading section .text, size 0x15d30 lma 0x3fc0000
> Loading section .rodata, size 0x5ba4 lma 0x3fd5d30
> Loading section .data, size 0x4100 lma 0x3fdb8d4
> Loading section .u_boot_cmd, size 0x658 lma 0x3fdf9d4
> Loading section .text_l1, size 0x2c lma 0x3fe002c
> Start address 0x3fc0000, load size 131160
> Transfer rate: 684 bits/sec, 10930 bytes/write.
>
> So, it probably have to be improved a lot before becoming useful
> tool.

You know, that AT91USB162 don't have DMA. Would DMA help improving that speed?

On AT91SAM7Sxxx you can use DMA for sending data to SPI, I2C, etc.
Could we use SPI or I2C or any serial, for sending data to JTAG pins?

The USBProg have the same problem with JTAG, it's very slow - you can
read this on his forum.

An quicker processor would for sure boost that speed.

Reply all
Reply to author
Forward
0 new messages