new girl trying hard to get a c++ example working in debug

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.

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.d...
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
Sam.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

At a guess the compiler should see the .cpp file extension, but really you need to consult the appropriate docs.

You are in the wrong forum. This is 8-bit AVR .

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try www.at91.com

This is Atmel's ARM forum

/Bingo