This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to generate timer interrupt in ARMulator?

Note: This was originally posted on 18th June 2009 at http://forums.arm.com

Hi,

I am trying to generate a timer interrupt in simulator. I tried with Cycle counter register and I am able to increment cycles, but it does not generate interrupt. I have gone through technical reference manual, but I could not find the answer.

If it is not possible in simulator, I would like to know how to simulate an external timer connected to the system. I tried going through timer.c file provided with Armulator(RVDS 2.2) but honestly, could not make much out of it.

Any help regarding this is appreciated. (I am new to ARM programming)

Warm Regards,
myra

EDIT: I am working on ARM1176JZF-S.
Parents
  • Note: This was originally posted on 23rd June 2009 at http://forums.arm.com

    Hi ttfn,

    Thanks for the reply.

    Will you please send your config files?
    I would like to know more details about the timer model. I have read the timer.c but could not understand it.

    I've managed to generate IRQs using the timer model and v6 core in the past.  To do this I had to edit two of the RVISS config files (v6armiss.dsc and perioherals.dsc).  There maybe a better way of doing this, but this approach worked for me.

    I can send you my config files if you wish.


    EDIT. removed mail id :)
Reply
  • Note: This was originally posted on 23rd June 2009 at http://forums.arm.com

    Hi ttfn,

    Thanks for the reply.

    Will you please send your config files?
    I would like to know more details about the timer model. I have read the timer.c but could not understand it.

    I've managed to generate IRQs using the timer model and v6 core in the past.  To do this I had to edit two of the RVISS config files (v6armiss.dsc and perioherals.dsc).  There maybe a better way of doing this, but this approach worked for me.

    I can send you my config files if you wish.


    EDIT. removed mail id :)
Children
No data