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.

Initializing timer in OMAP L138 Simulator

Other Parts Discussed in Thread: OMAPL138

I am trying to create a simulator in ARM926EJ-S Device Cycle Accurate Simulator Little Endian of OMAP L138.
I want to create a Timer for proper delays. What i did is i created a text file named clkX0.dat containing
clock cycles 10 20 50 giving to interrupt pin IRQ and i called the function OSTimeDly(). But my timer is not working.
Can anyone tell whats the reason why my delay is not working.Thanks in advance.

  • Hi,

    From a standpoint of the .dat file syntax, you shouldn't have the words clock and cycles in it, and the numbers you use translate only to absolute number of cycles (thus the interrupt will be triggered at 10, 20 and 50 cycles after reset and never again).

    If you haven't done so, please take a look at the Pin Connect wiki page at:

    http://processors.wiki.ti.com/index.php/Pin_Connect 

    I don't know the interrupt handling of the ARM9 devices in detail to help with the ISR code.

    Hope this helps,

    Rafael

     

  • HI,

    Thank you for your reply. Now i did not use the words clock cycle .i just wrote 10 20 50. What happening is that my delay function OSTimeDly()  is not working. My program is  not executing the function  IRQ_handler:.asmfunc . Thanks in advance for your help

    Regards

    Arun 

  • Hi,

    Let me rephrase the question as below.

    I am trying to create a simulator project for Omap L138. I wanted to enable timer interrupts under IRQ mode in the simulator.

    After i created the project i found that there is no simulator that can be configure for OMAP L138.

    So i configured it for  ARM926EJ-S simulator. I use IRQ setting for  OMAP L138 for configuring and enabling interrupt.

    When i do pin connect for ARM926EJ only IRQ and FIQ Pin names are available.


    1. Can i use these PINs (IRQ and FIQ) by configuring   IRQ and FIQ Pins of  OMAP L138  ?

    2. If not how can  i configure the IRQ and FIQ pins of ARM926EJ-S ?

  • Hi,

    1. The IRQ and FIQ are interrupt signals part of the ARM9 core (specified by ARM Ltd, not TI), and are usually not mapped to "pins" on the device (check section 5.7.1 of the OMAPL138 datasheet). However, from the simulator standpoint nothing stops IRQ and FIQ to be used as such.

    2. This would probably be better answered by the experts on the device forum. In this case you will have to create the code that services the interrupts (or try to find one at the internet), but unfortunately I am not very knowledgeable about this.

    Hope this helps,

    Rafael