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: Clearing FTU TEIF.MPV Bit / FlexRay Memory Protection Violation Indicator

Part Number: TMS570LC4357

Hello,

Section 26.3.1.17 of the TRM documents the TEIF (Transfer Error Interrupt Flag) register, including the MPV bit. This bit becomes set on an FTU memory protection violation. But how can the MPV bit be cleared after a violation has occurred? I have experimented with various methods, including writing '1', writing '0', re-enabling the transfer unit, etc. with no success.

Thanks for the help.

  • Experimenting some more, I have had success with this sequence:

    0. FTU MPV triggered.
    1. Reset transfer (e.g., with TTCCR register).
    2. Disable transfer unit (clear TUE bit).
    3. Write TEIF.MPV = 1 to clear.

    This seems to clear TEIF.MPV, and subsequently FTU works properly.
  • Hello Ninja,

    When the Transfer Unit is disabled (TUE bit is 0), no transfer trigger is generated. Memory protection violation (MPV) is nonmaskable interrupt which connects to VIM and ESM. To clear MPV bit, the violation error has to be removed.

    You are right, disable/enable the FTU will clear MPV bit.