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: Prefetch exception in Safety Library

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hello , 

I am running the attached SAFETY LIBRARY provided by Texas Instruments on TMS570LS3137 , http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=spnc043&fileType=zip  .

I am using http://www.ti.com/tool/TMDS570LS31HDK  . On Executing the code Red LED on the Board is turning ON and PREFETCH EXCEPTIONS is always kicked in not allowing the code to execute . 

The code is struck at      b   _excpt_vec_abort_pref

Is there any specific issue with compilation or alignment issue , like ALIGN (16) or ALIGN (32) or is it some settings that needs to be performed , attached is my project space .

5086.Fork.zip

  • Hello,
    A prefetch abort can only be expected when the CPU tries to fetch an instruction from a flash location that is either not valid (past the available flash memory) or which returns an ECC code that indicates a 2-bit error.
    Please check whether this helps:
    e2e.ti.com/.../794158

    Best regards,
    Miro
  • Hello,
    Since there is no additional info from you, I am going to close this thread for now. With writing a post bellow you can reopen it at any time. You can open new thread as well.

    Best regards,
    Miro
  • Hi ,

    Thanks for explaining me conditions how and why the Pre-fetch Exception occurs .
    I am not able to clear the Pre-fetch exception from the code provided in TI SAFETY LIBRARY , so I concluded the provided example from TI should be not good code that is causing the pre-fetch Exception , it could be the HALCOGEN Configuration also.
    I have safety library from different source that is working .

    Thanks,