Dear OpenSTM32 support,
I am attaching a test project which is reproducing the issue.
It includes a main function with an infinite loop.
My PCROP area in flash is from 0x8030000 to 0x8042000
see project linkerscript .ld: I allocate the man function in ROM_2 memory region.
If I locate ROM_2 region before the PCROP area, I can reach my while loop as expected.
If !i locate ROM_2 region after the PCROP area, the debug session won’t start with a WRPERR. It seems that OpenOCD always tries to erase all the block from memory start sector to last allocated sector.
Can you help me on this ?
Thanks for your help,