cant build make all for Example: at91sam7s64_cpp

OP #1174716
Rate this post
• ▲ useful
▼ not useful
Morning All.

I am trying to get a c++ debug example running on my AT91SAM7S256.
I have downloaded the example at91sam7s_cpp from
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index_at91.html#at91_cpp
I am trying to run this in Eclispe using openocd and ARM-USB-OCD.
I have already sucessfully run a C program from Eclipse in debug, but
want to get a C++ example running as I intend to write my app using OO
and C++.

My questions are:

1) When running the C program from Eclipse the Compiler invocation
command is set to C:\gccfd\yagarto\bin\arm-elf-gcc.exe, shuold I change
this for C++? to arm-elf-g++.exe? or something else

2) For the debugger options I have C:\gccfd\yagarto\bin\arm-elf-gdb.exe,
is that correct for C++?

3) The make file which came with the example compiles for ROM (final)
and not RAM (debug), I have changed this throughout and the project
builds without error, but when I try to debug I get the error No source
available for "main() " - View Disassembly
I have attached a copy of the modified make file.

I feel Im almost there - but not quite (or may not!)
Anyway, time to ask for some advise, so any help would be greatly
appreciated.
Thanks
XS.
Attached files:

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.