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.

RM57L843: Error Signal Module - Error Group 2 Description

Part Number: RM57L843

Dear Community,

where can I find advanced information on the High 

I always get a 0x00000008 in my EMS1SR2 Register which indicates that a error occured that caused an HighESMInterrupt that belongs to group 2 of the error interrupts.

However nowhere in the Technical Reference Manual can I find, which error leads to this exact interrupt.

Is there a list which HighESMInterrupt means which error?

Greetings

  • ESMSR2 = 0x00000008 --> bit 3 of ESM status register 2 is set. The table 6-45 of datasheet shows this error is commonly caused by improper or incomplete ECC values in Flash.

    The Flash memory is protected by Single Error Correction Double Error Detection (SECDED) which is enabled at reset.

    The ECC values for all of the Flash memory space (Flash banks 0 through 6) must be programmed into the Flash before the program/data can be read. This can be done by generating the correct values of the ECC with linker command file.

    The Cortex R5F CPU may generate speculative fetches to any location within the Flash memory space. A speculative fetch to a location with invalid ECC, which is subsequently not used, will not create an abort, but will set the ESM flags for a correctable or uncorrectable error. An uncorrectable error will unconditionally cause the nERROR pin to toggle low. Therefore care must be taken to generate the correct ECC for the entire Flash space including the holes between sections and any unused or blank Flash areas.

    Here is the notes about generating ECC using linker cmd:

    https://software-dl.ti.com/hercules/hercules_docs/latest/hercules/How_to_Guides/index.html

    This is my example:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/1425.HL_5F00_sys_5F00_link.cmd

  • Thank you very much for this detailed answer.
    It help me a lot.

    Since I'm using IAR Embedded Workbench I'm not sure if I can use your Linker example 1:1 or if it need further modification.
    But I checked the project options in IAR and also found a setting to override all non used FLASH memory with 0xFF.
    However this actually overrides the FLASH every time and must not be used together with the changes in the linker file.

    Each way, this solved my problem.