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.

Compiler/TMS570LS0432: ESM

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI C/C++ Compiler

Hello

Are all Esm tests generated by hardware?if that,I only set HAL software ESM channel 0-63 Interrupt,right? and In my project dont need to do angthing except deal with interrupt function.

please tell me about esm,and what  can I need to do?

   Thank you !

  • Hello,

    The Error Signaling Module (ESM) collects and reports the various error conditions on the microcontroller.

    Up to 128 error channels are supported and they are divided in 3 different groups (channel assignment is Datasheet, Table 6-26 ).
    - Group 1: 64 channels with configurable interrupt generation and configurable nERROR pin behavior;
    - Group 2: 32 channels with predefined interrupt generation and predefined nERROR pin behavior;
    - Group 3: 32 channels with no interrupt generation and predefined nERROR pi behavior.

    From HALCoGen you can configure 64 channels assigned to group 1. Both interrupt generation and nERROR pin behavior are configurable from HALCoGen.

    The ESM module has error flags for each error channel ( in error status registers ESMSR1, ESMSR4,ESMSR2, ESMSR3 ). Once an error occurs, the ESM module will set the corresponding flags. If interrupt generation is enabled than interrupt will be triggered. In application software user can handle errors and decide how the program will proceed.

    Best regards,
    Miro

  • Hello Miro 

    I have read these words.  I what to know,In my project dont need to do angthing except deal with interrupt function.

    Only set HAL software ,and than if cpu have error,....

  • Hello,

    esmInit() function is called in sys_startup.c After ESM is initialized, interrupt generation and nERROR pin behavior will be according to your settings in HALCoGen. Then in application you have to take care of what action will be taken when error occurs. If some error occurs and interrupt generation is enabled for that error, interrupt will be triggered. In ISR you have to identify the error and take action if needed.

    Best regards,
    Miro

  • Thank you  

    Only set HALCoGen,and deal with interrupt in my program.

    esmInit() function is called in sys_startup.c After ESM is initialized,Is ESM detection hardware generated?

    Best regards,
    Whong

  • Hello,

    Yes!

    Best regards,
    Miro