Problems with Yagarto/Eclipse/C++ Programming

OP #1172256
Rate this post
• ▲ 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
#1172257
Rate this post
• ▲ 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
OP #1172258
Rate this post
• ▲ 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

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.