EmbDev.net

Forum: ARM programming with GCC/GNU tools Problems with Yagarto/Eclipse/C++ Programming


Author: Flying Arm (flying)
Posted on:

Rate this post
0 useful
not useful
Hi

I am working with yagarto eclipse ide, i am trying to write simple
programs for AT91SAMX256 Olimex board.

I tried to flash the sample program written in c it works fine.

Now i like to do my programming in c++.

What things i need to chnage for example makefile , compiler.

I am using the compiler arm-elf-g++ and the main file to .cpp extension.

I will be really thankful if anyone can help me out in this issue.

Have a nice day ahead.

Regards
Flying

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 useful
not useful
Rajitha Dandu wrote:
> Hi
>
> I am working with yagarto eclipse ide, i am trying to write simple
> programs for AT91SAMX256 Olimex board.
>
> I tried to flash the sample program written in c it works fine.
>
> Now i like to do my programming in c++.
>
> What things i need to chnage for example makefile , compiler.
>
> I am using the compiler arm-elf-g++ and the main file to .cpp extension.
>
> I will be really thankful if anyone can help me out in this issue.
>
> Have a nice day ahead.
>
> Regards
> Flying

look on winarm example web page. I'm sure you will find a sample for
this with the correct ld file and startup file.

I know you have to put some thing there but since i have never
programmed in c++ on micro i can't help you much with this.

good luck

Jonathan

Author: Flying Arm (flying)
Posted on:

Rate this post
0 useful
not useful
Jonathan Dumarjo wrote:
> Rajitha Dandu wrote:
>> Hi
>>
>> I am working with yagarto eclipse ide, i am trying to write simple
>> programs for AT91SAMX256 Olimex board.
>>
>> I tried to flash the sample program written in c it works fine.
>>
>> Now i like to do my programming in c++.
>>
>> What things i need to chnage for example makefile , compiler.
>>
>> I am using the compiler arm-elf-g++ and the main file to .cpp extension.
>>
>> I will be really thankful if anyone can help me out in this issue.
>>
>> Have a nice day ahead.
>>
>> Regards
>> Flying
>
> look on winarm example web page. I'm sure you will find a sample for
> this with the correct ld file and startup file.
>
> I know you have to put some thing there but since i have never
> programmed in c++ on micro i can't help you much with this.
>
> good luck
>
> Jonathan

Thank you for your response.

I tried on WinArm Projects page .I got a linker script for other target
board , but i dont know how to change the memory locations according to
my Target board .
I have a Olimex borad with AT91SAM256.

It gives error 'no memory section defined for loadable section'.

Please help me to fix this error if anyone of you have any idea.

I will be thankful to you if you can provide me any information
regarding the Linker Scripts, makefile and the settings which i need to
do for c++ programming with Yagarto.

Have a nice day ahead.

Regards
Rajitha

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.