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?
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.
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.