We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using Eclipse IDE to crosscomplie C++ code.
When I croosscompile Linux / Ubuntu C++ code for Raspberry Pi 3B (ARM7) I have no issues with actually running the code on the target. It all works as expected. I am using just plain "hello word " as test application. No GPIO on 3B.
When I crosscompile identical test code to run on Raspberry Pi Zero - ARMv6l. The code compiles and runs doing unexpected things
After some research I realized that my "hello word" code does not have a clue about what the target hardware is!
I have no idea where did the "arm7" come from.
After more search I came to conclusion / recommendation to CHANGE the Eclipse default toolset to toolset specifically build for ARM processing.
At present I am looking at this developer.arm.com/.../gnu-rm
I am not sure HOW to implement / add this tool to Eclipse.
Not to confuse the issue - I have also found "/tools" folder in my OS and not really sure which resource should be used in my IDE and how.
I know I am not using correct terminology but how does GCC / G++ gets involved with ARM options using --buidl, --host, --target?
Any help / references would be greatly appreciated.
Cheers
Probably you are using armcc, or armclang. They can also compile c++ code. I do not know there is any independent g++ for arm.
My suggestion is you have to figure out the compiler/toolchain you are using; the compiling flags/parameters;
There is some manual you can check. infocenter.arm.com/.../DUI0472J_armcc_user_guide.pdf