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.

TMS570LS3137: Interrupt handler general procedure

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hi!

I have a basic but not so easy question. 
I learned interrupt handing with Cortex M devices. The procedure was simple: activate the desired interrupt from the HAL config, then go to a .c file that ends with "it", located in the source folder of the proyect, to find the right function (callback) to use. The vendor usually provides callbacks that come from a parsing of all possible interrupts sources of a peripheral, and are defines as "weak". I simply take those and define my own functions.

The problem I'm having is that I can't find the analog procedure with this TMS570 microcontroller and HalCoGen. I can't find that parsing of all possible interrupt sources of a peripheral, and I can't find the "weak" callbacks.

Can you help me with the right procedure?

Thanks!

  • Hi Carlos,

    You can find number of examples in HALCoGen for the device LS3137

    You can access them by going into the "Help Topics section.

    If you verify the "rtiBlinky example, in this example they configured and used RTI interrupt for LED blinking

    Here you can find the step-by-step procedure for this example.

    Similarly, you can access so many examples from here.

    Now i will explain the procedure for interrupts enabling in this device:

    First you have to enable the required interrupt in the HALCoGen, in this example we are enabling RTI compare0 interrupt:

    Now enable corresponding notification in RTI peripheral 

    Now call the "_enable_IRQ();" function to enable irq interrupts to the CPU.

    Now you can find all the weak notifications in the "HL_notifications.c"

    Select appropriate notification function and write it's definition.

    in this case it is "rtiNotification".

    --

    Thanks & regards,
    Jagadish.