Is IAP Erase Sensibly Optimised?

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

Is IAP Erase Sensibly Optimised?

跳至解决方案
945 次查看
mikesimmonds
Contributor III

I am specifically concerned with the LPC1313 but I expect that this will (should?) apply to all LPC devices.

Does the IAP implementation for flash erase (either individual sectors or all sectors) check for each sector

being blank and then skipping the erase for that sector. To reduce erase cycles and thereby improve longevity?

On a similar note, does flash programming check for identical updates and also skip the operation(s).

Regards, Mike.

标签 (2)
0 项奖励
回复
1 解答
707 次查看
thefallguy
Contributor IV

From what I have been able to determine, it is NOT smart. That is, it is up to you to determine if a page is identical and not reprogram. It is only a memcmp(), so not a big deal...

在原帖中查看解决方案

0 项奖励
回复
3 回复数
707 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Mike,

I think the IAP erase command is identical for all LPC MCU, however I hasn't found the information of the mechanism of the erase command, maybe only by NDA or it's not shared by the customers.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
707 次查看
mikesimmonds
Contributor III

I am not asking for trade secret technical details about the erase or programming algorithms, just whether or not

the IAP code is sensible enough to detect, say, an erase of an already blank sector and if so, skip the erase operation.

Surely, that information should not be subject to NDA.

Cheers, Mike.

0 项奖励
回复
708 次查看
thefallguy
Contributor IV

From what I have been able to determine, it is NOT smart. That is, it is up to you to determine if a page is identical and not reprogram. It is only a memcmp(), so not a big deal...

0 项奖励
回复