This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Basic question - AM3517 eXperimenter Kit

Other Parts Discussed in Thread: AM3517

Backround on me:  A relative newbie.  I did significant C-programming on Unix systems 15-20 years ago, but not much since.

Normal 0 false false false EN-US X-NONE X-NONE

I recently purchased the AM3517 Experimenter Kit (not the complete EVM).  Following all the instructions for the experimenter kit, I have successfully compiled (under Win7), loaded, and run the test program within the BSL using the Codesourcery Lite package from Windows 7.  This worked well an as you know is run interupting the linux boot and loading directly into memory.

I want to compile a program on my desktop (Win7) that will run in the Linux system provided with the experimenter kit.  I'm not sure how to compile to create an executable for the target system.  Say I have 'test.c'  (and assume it's entirely self contained except for stdio.h)  what do I do? 

I think I am far enough along to at least know the compiler is called

'arm-none-eabi-gcc'

but that's about it.

 

Thanks,

Keith

 

 

  • Keith,

    Edited Answer.

    It should be arm-none-linux-gnueabi-gcc or arm-none-linux-gnueabi-g++

    If you need to include a library such as a math lib, then you would need the -lm flag added to the end of the compile command.

    Please post back if you have any troubles.

  • Hi Keith,

          Browse through the below link, which provides all the necessary details :

    http://processors.wiki.ti.com/index.php/GSG:_AM35x_EVM_Software_Setup#Writing_a_simple_program_and_running_it_on_the_EVM

     Hope this helps

     

    Regards,

    N.S.SriHarsha

  • Thanks, I feel like I'm getting closer.

    I don't think I have 'arm-none-linux-gnueabi-gcc'.  Is that the name if the host system is a Linux system?   My host system is Win7.  

    I have 'arm-none-eabi-gcc'  I am now looking at http://www.codesourcery.com/sgpp/lite/arm/portal/doc9876/getting-started.pdf  On page 20 there is an example application and commands for compiling.  I don't know what '-T' option to use, and without it I get linker errors as they describe.    Maybe all I need is the correct '-T'

     

    I'm assuming that if I get this compiled with the right options, I can put it on the experiemter kit, chmod 755, and run it. 


    It doesn't sem like what I am doing is that unusual.  If needed, I will can go to a Linux (OpenSuse 11.3) host computer.

     

    Keith

  • Hi Keith,

    arm-none-linux-gnueabi-gcc is the name of the compiler binary that would be used to Cross Compile an application for a target AM3517 EVM or many other ARM / Linux target systems from T.I.

    I've installed Code Sourcery lite on my Host Windows XP machine and built and run simple test programs. Unfortunately I don't have a win7 PC to test with.

    For my XP PC, the Code sourcery Lite tools installed at this location: C:\Program Files\CodeSourcery\Sourcery G++ Lite\bin

    I will install Code Sourcery on my win7 PC at home this evening, but I would expect something similar to XP.

    The Code Sourcery tools you want are: - Sourcery G++ Lite 2009q1-203 for ARM GNU/Linux

    Here is the correct link for the code sourcery tools: http://www.codesourcery.com/sgpp/lite/arm/portal/release858  

    There is a windows installer version.

     

  • Thanks again Jeff.  I think we're on to something.   I think I have Sourcery G++ Lite 2010.09-51 and the compiler there has the different name.  It did work for the BSL test package, just not my simple program.  Anyway, since this morning I  used a Linux (Opensuse 11.3) on a virtual box to install the 2009q1 version and followed the  the other gentleman's post above. above.  It worked!  But, I still want to do this under Windows.   So, I will install the 2009q1 version in windows and see what happens, and come back here and tell.

     

    Keith

  • OK, I installed the older version and now my hello.c program compiles and runs on the eXperimenter board.  Great!!  compiler is now called

    arm-none-linux-gnueabi-gcc

    as you said.  However, now the board support library (BSL) test program supplied by Logic for the board does not compile.  The makefile expects the other compiler name....

     

    Keith

     

  • Keith,

    Thanks for posting your status.  I'm not that familiar with the BSL, so let me check up on that and understand better why they don't work together.

    My guess is that they are different EABI's and not compatible.