Dear Lukas:
Thank you very much for your answer. I wonder if you mind if I ask two more questions:
1、 I ran the last code and found a new problem,Code 1 runs normally. When I run code 2, the program is abnormal and falls into an endless loop. I don't know where the problem is and how to solve it, so I ask for your help. Here is my code:
/* Unlock block L0 at 0x0000_0000 */
FLASH.LMLR.R = 0xA1A11111;
FLASH.LMLR.R = 0xFFFFFFFE;
FLASH.SLMLR.R = 0xC3C33333;
FLASH.SLMLR.R = 0xFFFFFFFE;
/* Erase L0 block */
FLASH.MCR.B.ERS = 1;
FLASH.LMSR.R = 1;
*(unsigned int *)0x0 = 0xFFFFFFFF;
FLASH.MCR.B.EHV = 1;
while(FLASH.MCR.B.DONE == 0){};
if(FLASH.MCR.B.PEG == 0)
while(1){};
FLASH.MCR.B.EHV = 0;
FLASH.MCR.B.ERS = 0;
/* Program the block with some data */
FLASH.MCR.B.PGM = 1;
//code1
*(unsigned int *)0x00000000 = 0xAABBCCDD;
*(unsigned int *)0x00000004= 0x11223344;
//code2
//*(unsigned int *)0x00000F0F = 0xAABBCCDD;
//*(unsigned int *)0x00000F13= 0x11223344;
FLASH.MCR.B.EHV = 1;
while(FLASH.MCR.B.DONE == 0){};
if(FLASH.MCR.B.PEG == 0)
while(1){};
FLASH.MCR.B.EHV = 0;
FLASH.MCR.B.PGM = 0;
2、In section 13.3.2.2 Low/Mid Address Space Block Locking Register (FLASH_LMLR) and
13.3.2.5 Low/Mid Address Space Block Select Register (FLASH_LMSR) of Flash Programming of MPC5553_4_Reference_Manual,_Rev_31,


In this regard, I have two different understandings, and I do not know which one is right.I list two understandings. Please point out that the right or the two are incorrect.

Regards,
Lukas