2017-02-21 10:00 PM
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.
Solved! Go to Solution.
2017-02-23 05:37 AM
Hello Mujeeb ,
there is an interruption for that
Vector35 0x088C 4
ECC_DBD_PlatformFlash | ECC_DBD_PlatformRAMPlatform ECC Double Bit DetectionVector36 0x0890 4ECC_SBC_PlatformFlash | ECC_SBC_PlatformRAMPlatform ECC Single Bit Correctionyou can enable it.
Best regards
Erwan
2017-02-23 05:37 AM
Hello Mujeeb ,
there is an interruption for that
Vector35 0x088C 4
ECC_DBD_PlatformFlash | ECC_DBD_PlatformRAMPlatform ECC Double Bit DetectionVector36 0x0890 4ECC_SBC_PlatformFlash | ECC_SBC_PlatformRAMPlatform ECC Single Bit Correctionyou can enable it.
Best regards
Erwan
2017-02-23 07:18 AM
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.
2017-02-23 09:20 AM
Hi Mujeeb ,
There is a useful application notes for
/* 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