USB mass storage device from SD card with TWR-K60 and MQX 3.8.1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB mass storage device from SD card with TWR-K60 and MQX 3.8.1

3,650件の閲覧回数
Peter_
Contributor II

Hi guys,

I have to realize USB mass storage device from SD card with TWR-K60 and MQX 3.8.1. Could you kindly direct me how to realize it ?Or even better Share a working project? Because I have tried to modify the example implemented in MQX but without results.

Thanks a lot in advance.

Regards,

Peter

7 返答(返信)

2,260件の閲覧回数
danielchai
Senior Contributor I

Hi Peter,

Did you get it working? I am facing the same problem.

-Daniel

0 件の賞賛
返信

2,260件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Peter,

I made this its own post.

Would you please describe your needs more fully?  I'm confused by the wording of the first sentence "I have to realize USB mass storage device from SD card with TWR-K60 and MQX 3.8.1.".

Regards,

David

0 件の賞賛
返信

2,260件の閲覧回数
Peter_
Contributor II

Hi David,

First of all thank you for your reply and sorry if my post isn't so clear.

I have the TWR-K60N512 and TWR-SER and I would like to plug in to PC the usb of the twr-ser and reading/writing the SD card; is not there an example to do this right?

Regards,

Peter

0 件の賞賛
返信

2,260件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Peter,

Thank you for elaboration.

We do not have that specific example.  We do have the pieces for you to work with.

The SD card example is:

C:\Freescale\Freescale MQX 3.8\mfs\examples\sdcard

It uses a "shell" to allow you to have access to the SD card that is MFS mounted to give you all the "DOS" like capability.

The USB device has example of mounting a RAM disk mounted with MFS so that when you plug the board into PC it will enumerate and you can drag-n-drop a file.

C:\Freescale\Freescale MQX 3.8\usb\device\examples\msd

But we do not have a "gateway" example of USB enumerating to PC that then gives access to the SD card.

Regards,

David

0 件の賞賛
返信

2,260件の閲覧回数
Peter_
Contributor II

Ok David,

I have already tried these examples, but I don't able to understand how to match both. Starting from C:\Freescale\Freescale MQX 3.8\usb\device\examples\msd I have mounted sdcard but then? What Do I have to edit?

Regards,

Peter

0 件の賞賛
返信

2,260件の閲覧回数
JuroV
NXP Employee
NXP Employee

Hi Peter,

in the usb\device\examples\msd\disk\disk.c file you can find the application layer serving the USB MSD class requests for reading and writing to the SD card, you have to adapt these to work with SD card driver.

You will have to change also usb_descriptor.c - it should be reflecting the state of current SD card media inserted. You must know how many partitions there are, how are they big etc, because the PC will be asking for such information.

0 件の賞賛
返信

2,260件の閲覧回数
sudhakarp
Contributor V

hi Juraj,

me also facing same problem can you point out what are the changes we have to make, its useful to everyone. example for 4gb 0r 8gb SD card  what i should do for SD card Mass storage. i am using frdmk22 controller and KDS3.0 and KSDK1.3.0 example.

regards,

sudhakar p

0 件の賞賛
返信