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.

Compiling, Building & Running StarterWare example Applications - Failed

Good day,

I have been working on AM335x EVM connected to a host PC (Ubuntu 10.04 LTS version)

Below softwares are already installed on my host system i.e on Ubuntu 10.04:
ti-sdk-am335x-evm-05.05.00.00
CCS-5.1.1.00033-Sitara-ARM
AM335X_Starterware_02_00_00_07

There are some examples applications in starterware directory which i want to complile, load and run on the target board through CCS.

Recently i tried with a dmtimer code provided in starterware\examples\evmskAM335xdmtimer in CCS. This c code is not working while buildind/running in CCS.

Also there is one more directory named "build" having various projects files under 'cgt_ccs' and 'gcc' folder.
\starterware\build\armv7a\gcc\am335x\evmAM335x\dmtimer
\starterware\build\armv7a\cgt_ccs\am335x\evmAM335x\dmtimer

I even tried same timer code in both enviroments a) command line b) CCS but failed to run them. Please see attached error screenshots i encountered with. Is there any thing am missing while doing the operation?

Moreover i followed this link : http://processors.wiki.ti.com/index.php/StarterWare_Getting_Started_02.00.XX.XX   but were confused with code sourcery. Do i need to download 'code sourcery' to run Starterware example applications?

My issues are cited below:
1. Could anyone guide me if any additional steps etc am required to do in order to run the code?
2. How do i deploy this code on EVM once the code is successfully compiled & built?
3. While deploying the .out file on EVM, should there be any OS running on board?
4. How to compile, build & run the code if i go through Linux command line?

Please share your views regarding above issues.
Thanks in advance.

Regards,
Nitin

 

  • Hi Nitin,

    In general , you need to initialize the board and then load the application. To do that you can either:

    1) Download the bootloader and app binary from one of the available booting interfaces (SD, UART, etc.)

    2) Connect using CCS/JTAG and initialize the board using provided GEL file and then download app binary.

    If you plan to use option 1) and boot from SD, then please refer to http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Booting_And_Flashing#Booting_Via_SD_Card

    Regarding your question about compilation of projects, StarterWare ships with two sets of 'make' files. You can build the projects using TI's Code Composer Studio (CCS) and TI code generation tools, or you can use an external toolchain like the one provided by codesourcery. The project files to build using CCS  are under \starterware\build\armv7a\cgt_ccs and the make files to build using codesourcery are under \starterware\build\armv7a\gcc. Corresponding out files will be placed under \starterware\binary\

    If you plan to use codesourcy toolchain, you need to download it as explained at http://processors.wiki.ti.com/index.php/StarterWare_Getting_Started_02.00.XX.XX#For_Linux_host and also you must export some environment variables. Please see http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#GCC.C2.A0from_Command_Line_in.C2.A0Linux.2FCygwin for more details

    Regards,

    Carlos