MPC5744P FLASH block

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5744P FLASH block

1,110 Views
eautopower
Contributor IV

look this program:

pastedImage_1.png

why the C55FMC.LOCK0.R = 0X00000200 is unlock mid block 0x00FB_8000 - 0x00FB_FFFF?

pastedImage_2.png

pastedImage_4.png

datasheet no any information.

Can you tell me how to choose the Flash block?

0 Kudos
6 Replies

720 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

There is no such block there. Is this example really related to MPC5744P?

pastedImage_1.png

0 Kudos

720 Views
eautopower
Contributor IV

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?

0 Kudos

720 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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;

0 Kudos

720 Views
eautopower
Contributor IV

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.

0 Kudos

720 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

According screenshots above - Flash memory map shows addresses, partitions and block numbers. LOCK register description shows bit position of particular block.

0 Kudos

720 Views
eautopower
Contributor IV

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?

0 Kudos