Hello,
In my project, I need to create a .txt file and read/write data to a USB memory stick, with a MK20DX256VLL7 MCU in baremetal. I could successfully port the code from Freescale's stack USB MSD Host example for K60, at C:\Freescale\Freescale USB Stack v4.1.1\ProcessorExpert\Examples\Host\MSD\USB_MSD_HOST_K60_PEx, to K20 in CodeWarrior v. 10.6.
But the demo code doesn't create a new or open a pre-created file in the stick. It just writes some data to it, without creating any file.
Can anybody give me an idea or provide me an example of how to do it?
Preferably with Processor Expert components, because my project was entirely developed with Processor Expert.
Thanks and best regards,
Marco Coelho
Hello Marco,
You can find an example application and tutorial for FRDM-K20D50M on mcuoneclipse site, see USB MSD Host for the FRDM-K20D50M Board.
Best Regards,
Marek Neuzil