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.

TMS570LS3137: Testing flash parity error detection causes a prefetch abort

Part Number: TMS570LS3137

Hi. I need to test the flash address parity error detection mechanism as part of my startup code. I copied the relevant test code from SL_SelfTest_Flash code from the Safeti library 2.4.0, run it before the interrupts are enabled and I copy the routine to RAM and run it there. The code executes OK in RAM, the test runs and passes and returns to the calling code in flash and execution continues, but at some point later a prefetch abort is triggered. Any clues as to what I have done wrong/am not doing? If I comment out the call the test my project the code runs fine with no prefetch abort..

  • Hello,

    Please check the value of IFSR and IFSR registers of CP15. 

  • The IFAR was set to 0xC3C3C3C2, which isn't a lot of help. 

    I have however found that the tests have to be run as early as possible in the startup process, so I guess I was running a test that triggered something else besides the parity error which was held in reserve until the interrupts were enabled. Seems to be working OK now. Thanks anyway.