Adamax
March 22, 2011, 9:58am
1
Hi Everybody,
I got an EMX with Micro Framework 4.1 and I can’ read from Tran Flash.
In the following I provide the details.
Could you please help?
SD Card and Trans Flash are Formatted FAT32 (from PC with Windows XP).
Using the following code, with Trans Fflash the board always says IsFormatted = 0:
sdPS = new PersistentStorage("SD");
sdPS.MountFileSystem();
foreach (VolumeInfo v in VolumeInfo.GetVolumes())
{
if (v.Name.Equals("SD") && v.IsFormatted)
{
Directory.SetCurrentDirectory("\\SD");
SDready = true;
}
}
I wonder if either:
I shall treat Trans Flash differently
Trans Flash is not supported by MF
The Trans Flash cards I am using have something wrong
Could you please help?
Thanks much!
Yes it is supported Do you have a different transflash (Micro SD) card to try?
I modified your post to use “code” tags. Please use them in future
Adamax
March 22, 2011, 10:07am
3
Oh thanks for your VERY quick response and I do apologize for I have not used the proper formatting.
At time being I have used all of the Trans Flash kind I had.
Maybe you could suggest a Trans Flash brand (or even more) you know is supported?
Any card should usually work. There is no specific limitation on our products. But we always recommend using a card from a good known source, like sandisk for example.
Adamax
March 22, 2011, 10:36am
5
I see, thanks.
The 2 Trans Flash I have tried with are from SanDisk.
I wonder if there is anything wrong with them.
User_5
March 22, 2011, 12:06pm
6
Are you using the development system or your own PCB?
Try a power supply.
Adamax
March 22, 2011, 1:13pm
7
Thanks for your suggestion: I am using a PCB. Power is provided trough USB connection.
Do you think the fact that SD is fine while Trans Flash is not might be related to a power supply issue?
Add a 10uF (or more) capacitor to the power pin on SD card and try again please.
Each card has different power consumption and different electrical characteristics.
Adamax
March 23, 2011, 11:30am
9
Thanks for the suggestion!
Here i list the additional attempts we have done:
added a capacitor
added a pull up
unlimited external power supply a nominal 3.3V
Despite of that, still the isFormatted is FALSE.
Not sure how I can proceed…
Thanks