hi,
I followed the instruction in the yagarto webpage, downloaded all the
latest relevant software (including eclipse runtime binary, openocd, the
toolchain etc)
But when i try to do the SAM7X256Test, i can't build the project. I
suspect the makefile is not working.
I downloaded eclipse-platform-3.6.1-win32.zip.
Instruction in the website says I should not unzip it and save it in
temp but when I click the application file, it can't open.
Then, what I did was i unzip the whole thing, copy it to c drive. It has
something like... bin/java not found. i already have the latest java
installed but probably may not be the same version stated in the yagardo
website.
so, what i did was copy the java file under the program file and copy it
into the eclipse-platform-3.6.1 folder. After copying it, the elicpse
application is able to run. But then, the makefile is all not working...
help please?
thanks
Yee Yee wrote:> hi,>> I followed the instruction in the yagarto webpage, downloaded all the> latest relevant software (including eclipse runtime binary, openocd, the> toolchain etc)>> But when i try to do the SAM7X256Test, i can't build the project. I> suspect the makefile is not working.>> I downloaded eclipse-platform-3.6.1-win32.zip.> Instruction in the website says I should not unzip it and save it in> temp but when I click the application file, it can't open.
(I'm not using Yagarto)
You did not read the instructions completly. Esp. the section "Eclipse
C/C++ Development Tooling - CDT"
> Then, what I did was i unzip the whole thing, copy it to c drive. It has> something like... bin/java not found. i already have the latest java> installed but probably may not be the same version stated in the yagardo> website.>> so, what i did was copy the java file under the program file and copy it> into the eclipse-platform-3.6.1 folder. After copying it, the elicpse> application is able to run.
Copying JRE-files into the Eclipse directory should not be needed. Just
install the Java runtime enviornment.
>But then, the makefile is all not working...
- Double check if "YAGARTO GNU ARM toolchain" and "YAGARTO Tools" are
installed.
- Try without Eclipse first. Just open a "shell" (cmd.exe), cd to the
directory with the demo-source and the makefile and type make all .
- Read the instructions from the Yagarto-site again - completly.
- if it still does not work show the output of arm-none-eabi-gcc
--version and make --version and make all
Hi, I tried but i still get this when I built the project.
**** Build of configuration Default for project SAM7S256Test ****
(Cannot run program "make": Launching failed)
"Eclipse
C/C++ Development Tooling - CDT" - i already got it installed. Same for
the toolchain and yagarto tools.
Can you build the project without the board present or connected to the
board and test it?
One question: If u happen to start a normal C/C++ project, how can u
configure the project later on such that it can build .exe application?
appreciate the help
thanks
Hi,
Martin, thanks.. I have solved the problem.
When i unzip the eclipse, the filename was in eclipse-platform-3.6.1-win
32.
After i copied to C:\ and change the filename to C:\, i am able to build
makefiles and create .0 file.
A question:
I came across this FAQ in the web:
http://www.delorie.com/djgpp/v2faq/faq8_22.html
The question is how do I create a library of object files?
so, right now, i know how to create .0 file by building a make project
from eclipse IDE.
It says must use an Archiver utility to create a library.
So, in eclipse, any tutorial that teaches creating a library package
using archiver utility?
so, is a .a file an equivalent ARMS version of a .LIB file in Windows?
If i manage to create a .a file, can i also link this .a file in Embest
IDE?
thanks
best regards
brian
Yee Yee wrote:>> A question:> I came across this FAQ in the web:> http://www.delorie.com/djgpp/v2faq/faq8_22.html>> The question is how do I create a library of object files?
As explained in detail on the mentioned web-page and in short form in
your previous thread in this forum. Just add the toolchain prefix (gcc
-> arm-none-eabi-gcc, same for ar)
> so, right now, i know how to create .0 file by building a make project> from eclipse IDE.>> It says must use an Archiver utility to create a library.>> So, in eclipse, any tutorial that teaches creating a library package> using archiver utility?
I don't know such a tutorial since I'm using makefiles for such tasks.
Maybe someone else can jump in here.
If you don't like or don't know how to use make/makefiles you can just
create a small batch-file with the calls of arm-*-gcc/arm-*-ar with the
parameters mentioned on the "delorie.com"-page.
> so, is a .a file an equivalent ARMS version of a .LIB file in Windows?
Not related to "ARMs" .a is the usual "file-extension" when using GNU
tools. (a for archive).
> If i manage to create a .a file, can i also link this .a file in Embest> IDE?
Did you ask Embest/read the IDE's manual? If the IDE calls tools from a
GNU toolchain with at least similar configuration and versions for
compiler and binutils this should work if linker-options can be
configured in the IDE. For example if the library is called libmylib.a
add -lmylib (n.b.: no "lib" prefix and not ".a" suffix) to the
linker-options. You may also need to add the path to the .a-File using
the -L option if it's not in the current build-directory of in the
default library search-path.