help! getting started with eclipse / at91sam7s

Hello,

I have a at91sam7s256 mounted on a at91sam7s-ek board.

I’m using Eclipse IDE and I’m trying to compile and debug a simple test program. I’m using Gnu-arm compiler, have Sam-ICE jlink but have no idea about how to configure the debugger in Eclipse. I’ve read tutorials about the “blinking led” but everything is all about the philips micro or stuff that has nothing to do with my board

When I try to debug with ODCRemote configuring these options

-cARM7TDMI-S -p3333 -a1 -s4

I get this error

OCDemon InitializeTarget Error : Cable Disconnected

When I try to debug using Openocd configuring these options

-f arm7_wig.cfg

I got this error

Error: parport.c:287 parport_init(): missing privileges for direct i/o

Has anybody of you ever used Eclipse for debugging a At91sam7s board using Sam-ice jtag? I’m using SAM-BA to transfer the .hex file in RAM, and I would like to use SAM-ICE jtag to debug this program in Ram. If you have any simple sample program or tell me what type of debugger should be better to use, or suggest me how to configurate the debugger in Eclipse… Thanks a lot!

You’re not going to like this reply, but it’s the truth.

The Atmel SAM-ICE USB debugger is designed to work with one of the professional compilers only. It uses the ARM-designed and therefore proprietary RDI protocol to converse between the GDB debugger and the target board.

I completed, very recently, a tutorial on how to set up a open source toolkit for the Atmel AT91SAM7S series of microprocessor chips (this is a open-source effort and I received no compensation for the work). Atmel supplied me with a SAM-ICE USB debugger but I could find no JTAG software driver for it (at least one that was as professional as Dominic Rath’s OpenOCD system). The problem is that RDI protocol.

Instead, I wrote the tutorial around the OpenOCD using a “wiggler” and the Amontec “JTAGkey” USB debugger. These debug interfaces work very well with OpenOCD.

Atmel is currently in the process of publishing my tutorial on their web site and it will be a few weeks before it is available for all to download.

If you will e-mail me your own private e-mail address, I will send you a draft copy of this tutorial as long as you don’t re-post it (I suspect Atmel would support me helping somebody using their part).

My e-mail address is: lynch007@gmail.com

The Amontec JTAGkey is a bit expensive ($177) but they are planning a low cost version soon and Olimex is days away from offering a similar USB JTAG device that will be very affordable.

Cheers,

Jim Lynch

Jim,

Somebody made in post in the yahoo gnuarm forum that said you can download the j-link driver (jlinkarm.dll) and use that with j-link server using a SAM-ICE device. He said he uses that configuration himself.

You may want to check that out…

Eric