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.

SK-AM62A-LP: AM62x: Timer Interrupt

Part Number: SK-AM62A-LP
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello Dev Team,

I am trying to develop a timer interrupt for an application using sysconfig as shown below. I set input clock frequency, input clock source, and tick period, and also enable interrupt mode with a timer callback function. 
I already declared a timer callback function in the main c file to ensure there is an error when building the project. If I already set the tick period in the sysconfig, should I edit another interrupt function inside the timer callback function? Or please provide me with a simple guide of timer interrupt setup and configuration using sysconfig. Thank you!

  • Hello Sopheap,

    Thanks for your query.

    Have you defined the timerCallBack function in your application code?

    Can you please share the complete error logs or a screenshot of the error logs?

    Regards,

    Tushar

  • Hello Tushar,

    I already defined it in the main c file. Actually, there is no error as of now. But I am curious on how to build timer interrupt for the project. Is timerCallBack function a timer isr function where we define the timer interrupt, for an example, it occurs every 100us? Or is there an example on this timer isr where I can follow?

  • Hello Sopheap,

    Is timerCallBack function a timer isr function where we define the timer interrupt, for an example, it occurs every 100us?

    Yes, the timerCallBack is an timer ISR function. Sysconfig will generate the appropriate code for setting the timer ISR as configured.

    Please refer below image where a timer_isr is configured to occur every 1000 us.

    Hope the above information helps.

    Regards,

    Tushar