My MCU is loaded with the test program at the supplier. But when I loaded the actual program, it did not allow me to erase or read the chip, and the device was protected.
There seems to be some option bytes programmed to protect the example code. Probably it's RDP == 0xBB. Setting it to 0xAA will allow you to flash your code, but the original demo will be erased forever