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.

AM263P4-Q1: RTI Timer Interrupt Integration in MCAN Project

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Dear Sir/Madam,

I am currently working on integrating the RTI peripheral into our MCAN project. The objective is to generate a timer interrupt every 1 second using RTI, and upon each interrupt, trigger an MCAN transmission.

The implementation approach includes:

  • Configuring the RTI module to generate an interrupt every 1 second.
  • Setting up the MCAN transmission function to execute within the RTI interrupt service routine (ISR).
  • Ensuring proper synchronization between the RTI and MCAN modules to prevent conflicts.

For your reference, I have attached the project zip file along with RTI SysConfig screenshots.

Could you please review the implementation and provide any suggestions for improvement? Additionally, let me know if there are any specific considerations I should keep in mind while integrating RTI with MCAN.

inegration.zip

Regards,

Tarun

  • Hey Tarun,

    Thanks for reaching out and providing an explanation of the application.

    Is everything currently working as expected and you are just looking for a code review?

    I assume this is all running on R5FSS0-0 is that correct? Are there any additional cores executing?

    What steps were taken to implement point #3?

    • Ensuring proper synchronization between the RTI and MCAN modules to prevent conflicts.

    Thanks and Regards,

    Zackary Fleenor

  • Hello Fleenor,

    I'm facing an issue with my project where the timer interrupt is not generating. As a result, I don’t see any CAN messages being transmitted. However, I’m confident that the CAN functionality is working because, in the same code, I’ve implemented another handshake function for CAN messages (i.e., I receive a response when sending a CAN request).

    Could you help me verify if my RTI SysConfig settings are correct?

    Thanks,
    Tarun

  • Hello,

    Understood, glad that you are able to validate CAN communication.

    Will be glad to check you RTI configurations.

    In the screenshots you shared, are these both from the same configuration of RTI0? It looks like values were changed between the first and second screenshot. Can you confirm the exact configuration used in your project?

    Can you run the RTI Blink example to validate the RTI interrupt functionality?

    Best Regards,

    Zackary Fleenor

  • Hi,

    I was able to successfully run the RTI Blink example. However, when integrating it with MCAN, it is not working.

    Could you please let me know if there are any specific procedures to follow when integrating multiple peripherals in a project?

    Regards,
    Tarun

  • Hi Tarun,

    I am not aware of any procedures defined for this. The goal was that this would be intuitive by utilizing the sysconfig tool and associated configurations to expand upon the existing examples.

    What steps are you taking to "integrate" the RTI Blink example with MCAN?
    My suggestion would be to start with the working MCAN example, then directly replicate the working RTI Blink sysconfig values in the same project.

    Best Regards,

    Zackary Fleenor