/* This function is used to erase flash, and lock CPU when erase.  */
IMAGE2_RAM_TEXT_SECTION void FLASH_EraseXIP(u32 EraseType, u32 Address)
/* This function is used to erase flash, and lock CPU when erase.  */
IMAGE2_RAM_TEXT_SECTION void FLASH_EraseXIP(u32 EraseType, u32 Address)
{
	FLASH_Write_Lock();
	FLASH_Erase(EraseType, Address);
	Cache_Flush();
	FLASH_Write_Unlock();
}