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.

TMS570LC4357: Prefetch Abort on power-on

Part Number: TMS570LC4357


I misread the last reply to the "parent thread" of this one - I went with CPSID instead of CPSIE, which obviously doesn't Enable interrupts but Disables them.

Simply using CPSIE still sent me straight to Prefetch Abort state. But moving hal_mcuIsrInit() to the line just after the exception flag clearing (line 376 in hal_mcu.c in the previous attachment) fixed that issue. Now I'm curious - can the reason this instruction juggle alleviated my problem be known (maybe it's obvious even)?

Regards,
Lucas

  • Hello Lucas,

    Where do you set the flash wait states? I didn't find in your code.

    The L2 Flash supports zero data wait state up to 45 MHz. The L2 flash is clocked by HCLK and is limited to maximum 150 MHz. The wait state should be set to 3 if HCLK=150MHz is used in your code.

    Set the wait state using FRDCNTL register in flash wrapper.