Part Number: TMS320F28377D
Hi,
I am trying to test the RAM ECC logic using the test registers provided. Below is the sample algorithm that I am using but it is not working. The yellow highlighted statement does not write the anything to the memory. When DxTEST register is written with 0x10 or 0x55, the memory in the D0 RAM is not writable. I tried writing it using Expressions and Memory Browser windows.
Is this approach correct?
/* Pointer points to D0 RAM */
UINT16 *TestPointer = (UINT16*)0xB000;
/* Write to D0 RAM */
*TestPointer = 0x54;
EALLOW;
/* Enable test mode, write allowed only to data bits, not to ECC bits */
MemCfgRegs.DxTEST.all = 0x55;
/* Write bit flip data to the same memory */
*TestPointer = (0x54 ^ 1);
/* Read the Data */
ReadData = *TestPointer;
/* Disable test mode */
MemCfgRegs.DxTEST.bit.TEST_D0 = 0;
EDIS;