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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

742 Views
MAPC
Senior Contributor I

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

0 Kudos
Reply
1 Reply

352 Views
marek_neuzil
NXP Employee
NXP Employee

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

0 Kudos
Reply