reading/writing SDCARD using USB

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

reading/writing SDCARD using USB

662 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by GuusReijnders_CG on Tue Jul 29 05:19:43 MST 2014

I am using the development board MCB1800 (lp1856) from Keil.
I can compile and the examples usb_rom_msc_ram and periph_sdmmc.

But the first example uses RAM instead of an SDCARD, so I want to combine these two examples.
I can read the number of sector and size of the SDCARD, so I can set the right settings for USB.
In windows the right size of the SDCARD is shown.

But now I want to read and write the Card using USB. I see the functions translate_rd and translate_wr.

I tried several things but nothing is working yet. What code do I need to add to let the SDCARD work with USB.
I have seen the gunctions diskr_read and disk_write. However when I use these functions in the USB routines the application gangs.


Thanks in advance
Labels (1)
0 Kudos
1 Reply

637 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xianghuiwang on Fri Aug 08 15:29:59 MST 2014
Hi, GuusReijnders_CG,

Please visit the second demonstration/implementation at below solution page for interfacing SDCARD with USB.

http://www.lpcware.com/content/project/Dual-USB-Host-Device-solution

regards,



0 Kudos