Solved
It seems that erasing selected sectors does not work with B-U585I-IOT02A. If I read back flash, it is not 0xff filled. Full chip erase is OK. Is this known issue ?
..
..
I found that I had SWAP_BANK set at option bytes. After I cleared that bit, selected sectors were erased. So, this was my mistake, CubeProgrammer is OK.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.