LPC43S57 : How to transfer file from SD Card to PC ?

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

LPC43S57 : How to transfer file from SD Card to PC ?

1,343 Views
julienbrissard
Contributor II

Hello,

I have a SD Card connected to a LPC43S57.

My software will not use any OS.

How can I transfer files from SD Card to a PC ?

Files are big, so I think that I should use Ethernet or USB, but I don't know how to do it, could someone help me ?

0 Kudos
9 Replies

1,033 Views
julienbrissard
Contributor II

Hi Brendon,

Thank you for your response.

I am using LPCOpen and I saw these projects, but I don't know how to make the bridge between the both of them.

I never used system file nor msc, so I don't know what to do.

On one way I get SDMMC functions on files (F_mount, f_open ...) and on other way I get functions with buffer adresse ( translate_rd, translate_wr).

Do you know any tutorial I could read to work on this topic ?

0 Kudos

1,033 Views
brendonslade
NXP TechSupport
NXP TechSupport

Sorry Julien, but we don't have tutorials like this.

0 Kudos

1,033 Views
jeremyzhou
NXP Employee
NXP Employee

Hi julien brissard,

Thank you for your interest in NXP Semiconductor products and 
the opportunity to serve you.

I'd highly recommend you the USB Device Mass Storage solution which allows you to connect various drives using MSC to an USB Host: SD cards, internal or external Flash memory and even a simple RAM disk.

USB Device Mass Storage 

And you can find the demo code via the Pack Installer management.

pastedImage_5.png


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,033 Views
julienbrissard
Contributor II

Hi jeremy,

Thank you for your answer.

I tried to compile the example with MCUXpresso IDE, but some files are missing (first one is usbd_config.h).

So I have some other questions :

- Is this solution free or shall I buy something (like MDK-pro) ?

- Is this solution without OS (I think so, but I want to be sure) ?

- Do you have some advice to use the example with MCUXpresso ?

Have a nice day.

0 Kudos

1,033 Views
jeremyzhou
NXP Employee
NXP Employee

Hi julien brissard,

Thanks for your reply.

- Is this solution free or shall I buy something (like MDK-pro) ?

  Yes, it's free.

- Is this solution without OS (I think so, but I want to be sure) ?

   No, it's based on OS.

- Do you have some advice to use the example with MCUXpresso ?

  The demo is based on KEIL, so you have to do some porting work, especially for startup code.
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,033 Views
julienbrissard
Contributor II

Hi Jeremy,

I just download Keil environnement and the example that you mentioned.

When I build the project I get following Error :

CompileResult.PNG

So it seems that MDK-ARM_Pro is required for USB_Device_MSC module.

0 Kudos

1,033 Views
jeremyzhou
NXP Employee
NXP Employee

Hi julien brissard,

Thanks for your reply.

I think you should activate the KEIL IDE at first.

Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,033 Views
julienbrissard
Contributor II

Hi Jeremy,

Thank you for your support.

I am able to build the blinky project example.

So I don't think that it is a problem with KEIL IDE activation.

When I look at keil web site, it seems that USB Host part need MDK-Pro, so I understand that USB Device part is free. But they mentioned that file system part need MDK-Pro.

I am afraid that I will not be able to use this solution

0 Kudos

1,033 Views
brendonslade
NXP TechSupport
NXP TechSupport

Hi Julien,

LPCOpen includes examples of how to write to an SD card (see example periph_sdmmc) and also a USB mass storage class device example (using RAM, usbd_rom_msc_ram). LPCOpen can be downloaded from here: https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/...

The examples don't use an RTOS and are free to use.

Your best starting point is probably from the LPCOpen package for the Keil MCB4357 board (as its a pin compatible device).

Regards,

Brendon

0 Kudos