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.

F29H85X-SOM-EVM: Will " __attribute__((interrupt("INT")))" be generated in the MCAL?

Part Number: F29H85X-SOM-EVM

Tool/software:

Hi,

    I used the keyword " __attribute__((interrupt("INT")))" for category 1 interrupt in OS module.I want to know how this keyword be generated in TI MCAL.When start Autosar OS will this keyword still be generated?

Best regards,

Zihao

  • Hello Zihao,

    To generate this option in MCAL; please select the Interrupt type (xxxInteruptType) as - XXX_ISR_CAT1_INT. Example from CAN Driver below - 

    This needs to be done in each MCAL you want to configure in Interrupt mode.

  • Hi Piyush,

    Due to the integration of the OS in the project, the OS takes over the interrupt vector address, which will enter the vector address specified by the OS after the interrupt is triggered.In functions with vector addresses specified by the OS, the OS will use the INT keyword to save the context.Therefore, we hope that the INT keyword should not be generated before the interrupt service function generated in Mcal. Otherwise, there may be errors in repeatedly saving and restoring the context.

    Best regards,

    Zihao

  • Hello Zihao,

    As per my understanding the interrupts in which Os saves the contexts etc. for are of type Category 2.

    In current implementation if user selects Category 2 in MCAL the attribute is not generated.

    For our ISR declaration we are following Autosar specification AUTOSAR_EXP_InterruptHandlingExplanation Chapter 6.1.