Skip to main content
Mujeeb Shaik
Associate II
February 22, 2017
Solved

How to Find the memory(FLASH) corruption issues in SPC MCUs?

  • February 22, 2017
  • 2 replies
  • 1471 views
Posted on February 22, 2017 at 07:00

Hi Team,

I am using SPC560b-Discover board 

IDE-SPC5 Studio, version: 5.2.1

I want to find if any memory corruptions in Flash(dataFlash or CodeFlash) and RAM.

Can you please help me to find the ways of memory corrupt happened,

As i know there will be one stranded  way to find is enable ECC or by default it will be enabled,

If ECC is only the way,

how to enable the ECC in SPC560B family MCUs,If ECC is enabled how we will come to know there is memory corruption is happened.

---

Thanks in advance,

Thanks & Regards,

Mujeeb Shaik. 

    This topic has been closed for replies.
    Best answer by Erwan YVIN
    Posted on February 23, 2017 at 14:37

    Hello Mujeeb ,

    there is an interruption for that

    Vector35 0x088C 4

    ECC_DBD_PlatformFlash | ECC_DBD_PlatformRAM

    Platform ECC Double Bit Detection

    Vector36 0x0890 4

    ECC_SBC_PlatformFlash | ECC_SBC_PlatformRAM

    Platform ECC Single Bit Correction

    you can enable it.

       Best regards

                       Erwan

    2 replies

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    February 23, 2017
    Posted on February 23, 2017 at 14:37

    Hello Mujeeb ,

    there is an interruption for that

    Vector35 0x088C 4

    ECC_DBD_PlatformFlash | ECC_DBD_PlatformRAM

    Platform ECC Double Bit Detection

    Vector36 0x0890 4

    ECC_SBC_PlatformFlash | ECC_SBC_PlatformRAM

    Platform ECC Single Bit Correction

    you can enable it.

       Best regards

                       Erwan

    Mujeeb Shaik
    Associate II
    February 23, 2017
    Posted on February 23, 2017 at 16:18

    Hi Erwan,

    Thanks for your reply,

    I understand this,but i need help to generate call backs code for this Interrupts using SPC5 studio,Can you please guide me how to generate the code for this interrupts.

    Thanks in advance,

    ---

    Thanks & Regards,

    Mujeeb Shaik.

    Erwan YVIN
    ST Employee
    February 23, 2017
    Posted on February 23, 2017 at 17:20

    Hi Mujeeb ,

    There is a useful application notes for

    http://www.st.com/content/ccc/resource/technical/document/application_note/57/02/dc/4a/8e/66/43/ad/DM000804pdf/files/DM000804pdf/jcr:content/translations/en.DM000804pdf

    /* you can set the priority like that */
    INTC_PSR(35) = 5;
    INTC_PSR(36) = 5;
    /* enable ECC error reporting (cf RM)*/
    ECSM.ECR.R = ***
    �?�?�?�?�?�?�?�?

    the handler vector36 and vector35 from IVOR4 should be called.

    it is recommended to check IVOR2 too (cf document)

    Best Regards

    Erwan