/* Lock the Flash to disable the flash control register access (recommended to protect the FLASH memory against possible unwanted operation) *********/ /* Set the LOCK Bit to lock the FLASH control register and program memory access */ FLASH->CR |= FLASH_CR_LOCK;