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: how do casue the generate the interrupts

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hello 

Team

 esmGroup1Notification()

 esmGroup2Notification  ( )

I see the HAL ESM have many item,Dose it select the item on ESM?And CPU automatic monitoring the item,if detects problems , generate the interrupt??

Do the cpu have esmGroup2?

memoryPort0TestFailNotification()

memoryPort1TestFailNotification()

Dose it select the item of HAL SAFETY INIT, Memory built in self test enable,if I select the item in it,dose the cpu automatic test?

and I see the Memory party self check .

memoryPort0 and memoryPort1 ,what means?

 Thank you 

 Thank you

  • Hello,

    This device has 128 error channels, divided into 3 different error groups: GROUP1, GROUP2, and GROUP3

    The ESM module has error flags for each error channel.

    Once an error occurs, the ESM module will set the corresponding error flags. In addition, it can trigger an interrupt. The interrupt for channels in GROUP1 is configurable, and channels in GROUP2 has predefined interrupt generation, and GROUP3 channels don't generate interrupt, but pull the nERROR LOW.

    You shall write the code in esmGroup1Notification() and esmGroup2Notification() to handle the interrupt.

  • Hello,

    memoryPort0TestFailNotification() and memoryPort0TestFailNotification() are used to handle the errors generated from memory self-test (PBIST). Whenever a failure occurs in any memory instance, the PBIST controller stops executing the memory self-test. You need to read the failure status registers.

    Please refer to datasheet, most of the peripherals' memory (DCAN, MibSPIx, N2HET, ADC, etc) are dual port memory (port 0, and port 1), and MCU SRAM is single port memory (port 0). 

    BTW, those two functions should be developed by the user. 

  • Hello

    For these two interrupts  esmGroup1Notification(), esmGroup1Notification()

    1.Do the TMS570LS3137 only  have esmgroup1?I see the HAL only  have 64 channel.

    2.Do I only write the  esmGroup1Notification function,and select  the option in esm channel . Nothing else needs to be done

  • Hi Whong,

    esmGroup1Notification() is used for RTI group 1. For RTI group 2, please use  esmGroup2Notification().

    There are 128 ESM channels which is divided into 3 groups.

    Group 1 has 64 channels (channel{31:0], channel[127:96])

    Group 2 has 32 channels (channel[63:32])

    Group 3 has 32 channels (channel[95:32])

    The ESM ISR generated by HALCoGen calls esmGroup1Notification() for Group1 interrupt, and esmGroup2Notification() for Group 2 interrupt.