Thank you for your reply.
The MPC5777M can be debugged(debug_ram and debug) online normally, because ERS0 is not properly controlled.
But why my code works fine in the debugger, but fails without debug.
In debug_ram/debug mode, the oscilloscope can capture a square wave on the PD[0].
When I download .ELF into MPC5777M flash,nothing found on the PD[0].
In debug_ram/debug mode, the register MC_ME_PS0[S_SIUL] = 0x1.
When I download .ELF into MPC5777M flash,the register MC_ME_PS0[S_SIUL] = 0x0,peripheral is frozen.Therefore, the registers in the SIUL functional unit cannot be operated.
"SIUL2.MSCR_IO[48].R = 0x32840000" can not work.
Is there any way to solve this problem?