is there any Register Protection (REG_PROT)(mpc5744p) software sample or document? thanks!
see the Appendix A on page 2843 in the reference manual:
There's a list of registers which can be protected. There's no INTC_0.BCR, so the lock bits are not implemented and the write access will lead to bus error.
take a look at
MPC5744 Registers Protection
there is another problem,
CLR_SOFTLOCK32(INTC_0.BCR.R); GET_SOFTLOCK(INTC_0.BCR.R, lock);
this two function will cause an reset , means we can not access 0xfc043800 ( the Soft Lock Bits area of INIC module). why this is happen?
Retrieving data ...