MPC5748G: Flash erase c55 one page

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5748G: Flash erase c55 one page

619 Views
kfirbs
Contributor III

Hi,

I have an MPC5748G device, and I would like to understand what is the minimum size that can be erased from the flash.

Let's say I work on section located in 0x1000000 size of 256KB Code Flash block0, and would like to delete part of it, e.g. 1024B, and keep the rest of the section intact.

How can I achieve this?

0 Kudos
3 Replies

450 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

the smallest entity you can erase is a block. You can't erase only part of block.

There are different sizes of blocks - from 16K to 256K. If you need to rewrite some data in flash, I would recommend to use rather small blocks if possible.

Regards,

Lukas

450 Views
kfirbs
Contributor III

Hi Lukas,

Thanks very much for the answer.

If so, I understand that if I would like to rewrite a 256KB block I would need to read it to an outside source

or have a free 256KB section to copy the code to.

0 Kudos

450 Views
kfirbs
Contributor III

Can someone please reply?

0 Kudos