AnsweredAssumed Answered

How to write / read data to/ from a USB stick with K20D72M with Processor Expert in CW 10.6

Question asked by Marco Aurelio P. Coelho on Aug 10, 2015
Latest reply on Nov 25, 2015 by Marek Neuzil

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

Outcomes