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.

TMS570 RAM ECC



Hi,

I am using TMS570 USB kit and I am working on RAM ECC. My requirement is when RAM ECC error is detected I need to restart my processor. Now I am able to generate RAM ECC error using "_ENABLE_ECC_R4_RAM" and using the below defined function

void ECC_Read_RAM (void)
{
 static unsigned int size = 0; // This is used to maintain the count for the number of words read.
 unsigned int dummy; // To hold the word read from RAM
 unsigned frame_size = 0; // This is used to maintain the count for number of words read in one frame.
 
 while  (size != (40*1024))
 {
  if (frame_size != 8192)
  {
   dummy = *(RAM_BASE + size);
   size ++;
   frame_size ++;
  }
  else
  {
   break;
  }
 }
 
 if (size == (40*1024))
  size = 0;
}

 

And now I want to restart my TMS570 application immediate after decting the RAM ECC error. Pleae let me know how can acheive this.

 

Thanks & Regards,

Ajay.