/* FLASH_SetStatus used to set register status. FLASH_WriteEn & FLASH_WaitBusy, and lock CPU when set are included in this function to avoid hardfault when TxCmd in XIP.  */
IMAGE2_RAM_TEXT_SECTION void FLASH_SetStatusXIP(u8 Cmd, u32 Len, u8 *Status)
/* FLASH_SetStatus used to set register status. FLASH_WriteEn & FLASH_WaitBusy, and lock CPU when set are included in this function to avoid hardfault when TxCmd in XIP.  */
IMAGE2_RAM_TEXT_SECTION void FLASH_SetStatusXIP(u8 Cmd, u32 Len, u8 *Status)
{
	FLASH_Write_Lock();
	FLASH_SetStatus(Cmd, Len, Status);
	FLASH_Write_Unlock();
}