look this program:
why the C55FMC.LOCK0.R = 0X00000200 is unlock mid block 0x00FB_8000 - 0x00FB_FFFF?
datasheet no any information.
Can you tell me how to choose the Flash block?
There is no such block there. Is this example really related to MPC5744P?
sorry,the example is MPC5748G,but i want to konw that how to choose the flash block for MPC5744P,like unlock.
How can the C55FMC.LOCK0 register be configured to unlock the corresponding block for MPC5744P?
By clearing of particular bit.
I am using this:
// unlock all blocks (for simplicity)
C55FMC.LOCK0.R = 0;
C55FMC.LOCK1.R = 0;
C55FMC.LOCK2.R = 0;
C55FMC.LOCK3.R = 0;
David:
I want to be able to erase the specified block, I know configure the LOCK register,but i don't know which register bit sets 0 can unlock corresponding the FLash block.
According screenshots above - Flash memory map shows addresses, partitions and block numbers. LOCK register description shows bit position of particular block.
David:
I still don't understand. Can you give me an example?
if i want ti unlock 0X00FA0000~0XFAFFFF,the C55FMC_LOCK0 which bit be set 0?why?