New Tutorial: ARM Development with Eclipse

Basic programming and setup of the AT91SAM9261 can be found in:

http://www.atmel.com/dyn/resources/prod … oc6298.pdf

and example code in:

http://www.atmel.com/dyn/resources/prod … ed_1.0.zip

The style and organization is a bit different from Jim Lynch but the fuctionallity seems to be the same.

/Magnus

Hi,

Thanks for the help everyone. I am a little embarrassed to say that I didn’t notice the available atmel documentation. I have even used the getting started example project as a reference when I was writing my code with the IAR IDE.

Unfortunately, tomorrow is my last day at my internship so I don’t think I’ll be able to put your help to much use. I’ll definitely leave documentation for my boss and/or future interns that will be continuing where I’ve left off.

Thanks again!

Andrew

Actually, I want to try and get the example project debugging at least.

I think I’m close, but when I’m running the debugger. I get an error.

I’m using a j-link-arm-ks.

I’ve set up my external tool: j-link gdb server v3.74g

location: C:\Program Files\SEGGER\JLinkARM_V374g\JLinkGDBServer.exe

working directory: C:\Program Files\SEGGER\JLinkARM_V374g

my debugger:

Embedded debug(native)

-Project: getting_started_at91sam9261

-c/c++ application: at91sam9261_getting_started_sram.elf

(there isnt a provided **_flash.elf project)

-debugger: C:\Program Files\yagarto\bin\arm-elf-gdb.exe

-Initialize commands: target remote localhost:2331

-Run commands: monitor reset 1

load

in the debug window I see

Thread [0] suspended

  • 1 0x00000000

And then when I go to Run->resume

i get an error

Embedded GDB (date) (Suspended) <putpkt: write failed: No error>

Any suggestions?

Andrew

I have come to the point where I need to build the blink example. Something does not like the space in the path “Program Files” but I don’t know what. I get this error:

**** Build of configuration Debug for project demo_at91sam7_blink_flash ****

make all 
F:\Program: F:\Program: No such file or directory
make: *** [blinker.o] Error 127

I’m using the very latest downloads of yagarto which include Eclipse 3.3. I noticed that there is no such thing as a Standard Make C Project.

I tried the make all command at the command prompt and that seems to work fine. Any ideas?

Try putting the filenames in your makefile in quotation marks.

Recently, Michael Fischer released a version of YAGARTO that incorporates the new Eclipse Europa release with the latest Zylin CDT . As such, there are a few small changes to be aware of.

When you create a new project, the dialog is closer to the Visual Studio methodology in that you can select a “executable”, “shared library”, “static library” or simple “makefile” project.

If you select the “executable” or “library” projects, you will get a ready-made template for main.c and a bag full of headaches when Eclipse starts asking for Cygwin components which are not part of YAGARTO.

Instead, always click on “makefile project” which will illuminate “other toolchain” on the upper right (I always click on that too but it’s not necessary).

Now the project can be defaulted on successive screens and everything from here onwards is as shown on the "Using Open Source Tools for AT91SAM7 Cross Development - Rev C" tutorial. I should mention that I was able to build all my projects with Eclipse Europa and I like the improvements made to the Eclipse editor.

I’ll try to get an immediate addendum published about these changes and then revise the tutorial at year’s end.

Cheers,

Jim Lynch

Great! That worked out perfectly! many thanks.

Hi,

I have Eclipse version 3.3.1.1. Under menu item “Run->Open debug dialog” are not items “embedded debug”(cygwin and native). How can i make debug?

Regards,

Philipp

Hi Philipp.

Did you use YAGARTO as your source for Eclipse?

YAGARTO also downloads Eclipse CDT (modified for embedded development) and this modified CDT adds the debug configurations: Embedded Debug (Cygwin) and Embedded Debug (Native).

It sounds to me like you downloaded Eclipse from the Eclipse web site. You need the Zylin-modified CDT and YAGARTO is the place to get all the correct components.

Cheers,

Jim Lynch

Thank you, Jim!

Worked! :smiley:

Philipp

Jim,

When you get a chance maybe you can try doing what’s on this page :-

http://www.freertos.org/Eclipse.html

I have been monitoring the mailing list for Zylin for some time and Øyvind Harboe has been saying that his stuff is now in the mainline CDT.

The way you use it is slightly different.

If it works then maybe the YAGARTO IDE package is no longer needed ?

I am also looking forward to GCC 4.3 going gold, and hoping that Michael Fischer updates YAGARTO to 4.3 with Cortex M3 support.

All the best.