Hi, The solution is to stop the core just after power-on-reset, attach by debugger and erase MCU/reload the code.
With TRACE32 it can be done by “Halt core at power-on reset” feature (Select in the menu: MPC5XXX - Tools - Halt core at power-on reset.).
It can be done with PeMicro as well, but procedure is no so simple. Which debugger you are using?
You cannot bricked out the MCU by simple register write, it would have to be some NVM programming as DCF records.