Hi Arth Shah,
After you modify the FRDM KL26Z board with 256KB flash chip, please refer to the FRDM-KL46 USB MSD sdk code which can be downloaded from this link:
Welcome | MCUXpresso SDK Builder
The usb module in KL46 is the same as KL26.
Please try it, if you still have problem about it, please kindly let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------