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