I am still waiting for an answer on this topic.
I moved on a bit on my side but could not solve the issue.
I retrieved the OpenOCD source code and modified it to ignore all flash sector erase error.
Nevertheless the flash write operation then fails. If I got correctly the OpenOCD process, the write algorithm creates a binary from the input linker and pads space between memory sections. The write is done from the start of the first section to the end of the last section in flash memory.
The write is always done on a continuous memory area and logically fails when the PCROP sections are reached.
Does anyone has a solution to solve this ? How could I use OpenOcd write algorithm to write section by section ? (all my attempts failed with various errors)
Thanks for your help,