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.

TMS570LC4357: How to change the interrupt priority in HalCoGen or CCS for TMS570LC4357?

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi There,

I want to change some hardware interrupt priority level for our software applications. For example, I want to GIO high level interrupt has higher priority than SCI4 Receive interrupt, but need let RTI interrupt priority even higher than the GIO interrupt priority. I have gone through the HalcoGen seems there is no place to customize the interrupt priorities.

Below is the interrupt table in HalcoGen:

And seems I can only edit high level or low level for interrupt:

Possible to change the priority level to "1, 2, ...32...100" like that, such priority level 1 always is highest priority?

Thanks

  • Hi Alex,

    The above highlighted channel numbers will indicate the priority for different interrupts. The lowest channel number have the highest priority and the highest channel number have the lowest priority.

    Unfortunately, these channel numbers cannot be shared from HALCoGen GUI. We have to use the vimChannelMap routine in the application to reconfigure the channel numbers.

    --

    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    Thank you very much for your replies and support.

    In this case, if I want to change the interrupt priority of different ISR, I should call the GUI function vimChannelMap() to do it right?

     

    Is below code working for configure the interrupt level?

    Thanks

  • Hi Alex,

    In this case, if I want to change the interrupt priority of different ISR, I should call the GUI function vimChannelMap() to do it right?

    You are right.

    I will provide you an example project 

    For example, as you can see the default channel for RTI compare 0 is channel 2 and RTI compare 1 is channel3. But i want to remap as like RTI compare 0 to the channel 3 and RTI compare 1 to the channel 2.

    If i want to do this i should use below two function calls in the code.

    The first function call will map the RTI compare 0 which is at channel 2 by default to the channel 3.

    And similarly, the second function call will map the RTI compare 1 which is at channel 3 by default to the channel 2.

    Here is the example attached project

    Channel_Mapping_with_vimChannelMap_LC4357.zip

    --

    Thanks & regards,
    Jagadish.

  • Thank you very much! I think your answers solve my concern and issues. Appreciate your time and support!