As the NRST pin is not available on this device, if the SWIM pin should be used with the I/O pin functionality, it is recommended to add a ~5 seconds delay in the firmware before changing the functionality on the pin with SWIM functions. This action ...
you can used this C code for enable read out protection . FLASH_DUKR = 0xAE; FLASH_DUKR = 0x56; FLASH_CR2 |= 0x80; FLASH_NCR2 &= 0x7F; *((unsigned char*)0x4800) = 0xAA; /// write AA for this location FLASH_CR2 &= 0x7F; FLASH_NCR2 |= 0x80; ...