MPC5748G: Flash erase c55 one page

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5748G: Flash erase c55 one page

944 次查看
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 项奖励
3 回复数

775 次查看
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

775 次查看
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 项奖励

775 次查看
kfirbs
Contributor III

Can someone please reply?

0 项奖励