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