1. ST-Link reports the wrong size for the Flash memory. ST-LINK-Utility reports "Unknown" and the ST-Link CLI reports 4095 kBytes.
2. ST-Link CLI can't erase memory sector 1 at 0x08004000. When using the commandline-switch -SE 0 1 st-link cli reports the following Error:
Memory Sector @0x8000000 erased
Memory Sector @0x8004000 is not erased. Verify the memory protection.
Verifying the Option-Bytes the memory is not protected!!!
Only a full chip erase can resolve this problem.