Thanks @Pavel_Hernandez 
I have tried the shared example, however i am not sure while writing to the flash data memory, are we disabling the other interrupts disable_irq();
I am not able to find interrupt disabling in the SDK example code.
 Pavel_Hernandez
		
			Pavel_Hernandez
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello, the example of flashiap does not have any IRQ but this are the function.
Best regards,
Pavel
 Pavel_Hernandez
		
			Pavel_Hernandez
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello, my name is Pavel, and I will be supporting your case, I recommend download the SDK and there you will be find some examples about FATFS with USB or others like Flash IAP.
Select Board | MCUXpresso SDK Builder
Select the examples and finish to start the import.
Best regards,
Pavel
