AnsweredAssumed Answered

MPU configuration error on MPC5777C

Question asked by purushothamreddy madduru on May 20, 2018
Latest reply on May 22, 2018 by Lukas Zadrapa

Hi,

I am getting exception just after configuring MPU and enabling it.

Please check below code and attached debugger screenshot, guide me how to proceed further

Please share application note and example code for MPU diagnostics for MPC5777C (cobra-55)

 

MPU_0.RGD[0].WORD0.R = 0x40023000; // start address
MPU_0.RGD[0].WORD1.R = 0x40023400; // end address
MPU_0.RGD[0].WORD2.B.M0PE = 1;
MPU_0.RGD[0].WORD2.B.M0SM = 1;
MPU_0.RGD[0].WORD2.B.M0UM = 5;

MPU_0.RGD[1].WORD2.B.M1PE = 1;
MPU_0.RGD[0].WORD2.B.M1SM = 1;
MPU_0.RGD[0].WORD2.B.M1UM = 5;

MPU_0.RGD[1].WORD2.B.M2PE = 1;
MPU_0.RGD[0].WORD2.B.M2SM = 1;
MPU_0.RGD[0].WORD2.B.M2UM = 5;

MPU_0.RGD[1].WORD2.B.M3PE = 1;
MPU_0.RGD[0].WORD2.B.M3SM = 1;
MPU_0.RGD[0].WORD2.B.M3UM = 5;

MPU_0.RGD[0].WORD2.B.M7RE = 1;
MPU_0.RGD[0].WORD2.B.M7WE = 1;

MPU_0.RGD[0].WORD2.B.M6RE = 1;
MPU_0.RGD[0].WORD2.B.M6WE = 1;

MPU_0.RGD[0].WORD2.B.M5RE = 1;
MPU_0.RGD[0].WORD2.B.M5WE = 1;


MPU_0.RGD[0].WORD2.B.M4RE = 1;
MPU_0.RGD[0].WORD2.B.M4WE = 1;

MPU_0.RGD[0].WORD3.B.VLD = 1; // enable descriptor[0]

// enable descriptor[0]
MPU_0.CESR.B.VLD =1;

Attachments

Outcomes