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: AM263P4-Q1 : ISR preemption

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

Tool/software:

Hi,

We are using Vector stack on AM263P4 controller for our inverter project.

We have configured a CAT0 ISR for the Motor FOC algo that gets invoked at regular periodic intervals.

There are many CAT2 tasks in the OS configuration for different tasks. CAT0 being higher priority than rest of the tasks, always pre-empts any of the on-going tasks.

This has been working well on our setup so far.

We have a new requirement where-in we have to design more CAT0 ISR (higher priority than the current Motor FOC algo). These are needed to handle the gate driver faults.

We are using UCC5800 that interrupts the micro via nFLT1 interrupt line whenever there is a gate driver fault detected.

When this gate driver fault occurs, this should be pre-empt the Motor FOC algo.

For some reason this does not seem to work.

Motor FOC ISR is not getting pre-empted and the gate driver Fault ISR always executes after the current FOC ISR.

We checked with Vector support since we are configuring the CAT0 in the da-vinci configurator. Vector's feedback was - MICROSAR OS has no idea about CAT0 interrupt and this issue should be checked with micro provider.

Could you please help us on this ?

  • Hi,

    Sure, happy to help.

    Is this CAT0 ISR being created from the MCAL layer underneath in the AUTOSAR stack? 

    Is there a TI MCAL module that is used for creation of this ISR? Would like to under the software involved here as TI only provides MCAL layer as part of the Autosar stack.

    Thanks and Regards,

    Nikhil Dasan