xpress_embedo
Advanced Member level 4
- Joined
- Jul 5, 2011
- Messages
- 1,154
- Helped
- 161
- Reputation
- 396
- Reaction score
- 189
- Trophy points
- 1,353
- Location
- India
- Activity points
- 10,591
The Microchip Application Library USB Device - Mass Storage - SDCard Reader example should do exactly what you want.
MPLINK 4.40, Linker
Device Database Version 1.3
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - could not find definition of symbol 'GetInstructionClock' in file 'Objects\47J53_PIM\SD-SPI.o'.
Errors : 1
void Delayms(BYTE milliseconds)
{
BYTE ms;
DWORD count;
ms = milliseconds;
while (ms--)
{
count = MILLISECDELAY;
while (count--);
}
Nop();
return;
}
P.S.: You didn't show yet specific error messages besides the yellow exclamation mark. As a first step, you would want to check, what the PC is recognizing up to now and at which point the communication fails.
1. The missing string descriptors might be a problem
2. Besides correct USB device data, a valid media partition table must be read before a drive is shown in explorer, I think.
As a general point, Windows makes some "presumptions" about USB mass storage devices that are not exactly obvious from the MSD specification. The best way to find out why an implementation fails might be to compare each step of enumeration and initial device data transfer with a known working USB memory device.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?