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.
Ajay,
Do you mean that you want to reset your application by generating a warm reset?
This is possible via the system module by accessing the SYSECR register as described in the TRM on page 179.
http://www.ti.com/lit/ug/spnu499/spnu499.pdf
Regards,
Jean-Marc
Best regards,
Application Engineer
If my reply answers your question please click on the green button "Verify Answer".