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.

Functioning of LEDs based on HW Timer & Interrupt

HI

I would like program LEDs of AM335x EVM involving timer & interrupt handler. Meaning there will a timer program with some pre-scale value(say 32-bit a specific frequency) and when it overflows, an interrupt will generate and corresponding self written interrupt handler will be called.

LEDs will blink at the occurrence of interrupt (timer change/pulse/overflow)

Below are the following questions i would like to have answered:

1. What should be the IDE/software framework(On both windows & Linux) in which i can write the above program?

2. What are the header files that is needed to include inside the code?

3. What are the timer registers involved in this program? Can i directly access them?

Could anyone guide me regarding above queries? 

Moreover please share if any sample codes/programs provided for the issue...

Thanks in advance.

-Nitin

  • Hi Nitin,

    did you study the Starterware wiki and examples already? there you will find what you need.

    Regards.

  • Nitin,

    Starterware comes with example projects that can be build using either Code Composer Studio (IDE) or standalone from the command line.

    If you prefer to build from the command line, you will need to download codesourcery toolchain. Please check http://processors.wiki.ti.com/index.php/StarterWare_Getting_Started_02.00.XX.XX for more details. You really don't need any IDE if you want to build from the command line, any text editor will do. However, IDEs such as CCS do make life a bit easier.

    The examples directory contains many useful application to show how to configure and control the EVM. In particular, check the examples\evmAM335x\dmtimer example, which shows how to configure timer and interrupt controller.

    Regards,

    Carlos

  • Hi Carlos,

    Your infomation have been really helpful. Startware comes for both windows and Linux installer and having maximum hardware dependent examples in it.

    I have few more questions related to same:

    1.    As for building example applications through Linux command line, do i really need to download "code sourcery" as i am already having ti-am335x-sdk & CCS on my host PC(ubuntu 10.04 LTS) with arm-arago toolchain and compiler?

    2.   If i go with windows CCS buiding, what are the necesary packages and software am i supposed to install on my host PC (winXP) ?

    3.   Does CCS for windows has all the required toolchains & compiler ? If so then is there any necessity to download code sourcery toolchain and cygwin?

    4.   And what does this no OS platform mean for starterware? Does this mean that we can directly deploy our codes to hardware without any OS involvment ?

    Please provide me the desired information. Thanking in anticipation.

    Regards,

    Nitin