XEP100 - Partition DFlash vs Full Partition DFlash

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

XEP100 - Partition DFlash vs Full Partition DFlash

1,822 次查看
Pedro_
Contributor III

Hi all,

I wonder if you could help me out with the following problem.

 

The flash loader I have needs to be capable of partitioning the D-Flash memory. The software will be running in Secured Normal Single Chip mode therefore it is not possible to execute a Full Partition D-Flash command.

 

I understand that even though parts are shipped in erase state, it is recommended to run a Full Partition command during production.

 

I'd like to know if the Full Partition command could be replaced with a sequence that erases the 32k D-Flash using FTM command 0x12 - Erase D-Flash sector, followed by a Partition D-Flash 0x20 command.

 

Is this something you would recommended?

 

Thanks

 

 

 

 

 

 

Message Edited by Pedro_ on 2009-03-23 11:07 AM
标签 (1)
0 项奖励
回复
2 回复数

530 次查看
jsmcortina
Contributor III

I have done something similar.

My code checks to see if the flash is partitioned  and if it isn't then it uses the 0x20 command.  I do not believe that you need to erase the flash as well, the partition command does that.

 

James

0 项奖励
回复

530 次查看
Pedro_
Contributor III

James, thants for your answer.

 

You should be aware however that the 0x20 Partition Command does not erase the D-Flash. This commands only does an Erase Verify to check all blocks have been erased.

 

Another thing to consider is a note in AN3490:

 

"The standard shipping condition for the D-flash and P-flash memory is

erased with security disabled; however, it is recommended that each block

or sector is erased before factory programming to ensure that the full data

retention capability is achieved."

 

What I have (seems to work fine) even with security enabled is a routine that is capable of erasing every D-Flash sector and perform a partition. The routine is erased afterwards to avoid any failures in the field.

 

Regards

Pedro

 

 
0 项奖励
回复