Dear all,
I want to programe in small flash memory block2 in MPC5744.
I reference manul, but it doesn't work.
The follow is my test code.
C55FMC.MCR.B.PGM = 1;
*(unsigned int *)(0x00F98000) = 0;
*(unsigned int *)(0x00F98004) = 0x1234;
C55FMC.MCR.B.EHV = 1;
while(C55FMC.MCR.B.DONE!=1);
C55FMC.MCR.B.EHV = 0;
C55FMC.MCR.B.PGM = 0;
Best Regards.
Yes, I have unlock block2.
The code is "C55FMC.LOCK0.R &= 0xFFFDFFFF;"
It should be:
C55FMC.LOCK0.R &= 0xFFFBFFFF;
Then it works...
Regards,
Lukas
Hi,
have you unlocked the block in C55FMC_LOCK0 register? It's locked by default...
Regards,
Lukas