Other Parts Discussed in Thread: C2000WARE
Tool/software:
Dear support team.
I try to add ECC RAM test in my project.
I start from the example below:
C2000Ware_MotorControl_SDK_5_02_00_00\c2000ware\libraries\diagnostic\f280013x\examples\sdl_ex_flash_ecc_test
But I face some issue / have questions.
In function runCorrectableECCTest:
//
// Put the M0RAM into test mode so we can write to the data without
// updating the ECC, flip a bit, and put the RAM back into the normal
// functional mode.
//
testRAMLogic(MEMCFG_SECT_M0, MEMCFG_TEST_WRITE_DATA,
(uint32_t)&m0Data, (RAM_DATA_SINGLE_BIT << index));
This function work as espected and trig the error ISR (correctable error) but:
//
// Put the M0RAM into test mode so we can write to the ECC bits
// directly, flip multiple bits, and put the RAM back into the
// normal functional mode.
//
testRAMLogic(MEMCFG_SECT_M0, MEMCFG_TEST_WRITE_ECC,
(uint32_t)&m0Data, (RAM_ECC_SINGLE_BIT << index));
This one didn't trig error ISR but NMIisr so I'm a little bit confused.
The comment says "flip multiple bits" so if right, it is not correctable and it is normal to trig NMI, but for me the code only flip single bit.
Please let me know where is the error? In the example?
Regards.