but i think it is only because the unmount failed (directly after the mount)
When i put a short Thread-sleep before the unmount i have no exeption. So this is not the problem here - you are right.
when i try to create a filestream on a SD-card the Panda II is not recognizing as formated ( right now… every single SD) or if i try to use the format-code from reply 13.
when i try to create a filestream on a SD-card the Panda II is not recognizing as formated ( right now… every single SD)[/quote]
Let us not mix things so we can help you better. Once problem above is resolved, then we will look into this one.
I can not use the SD Card with my Panda II.
I can format it on windows and copy files on it i need for my Panda-Webserver (also on Windows).
The Panda II says the SD is not formated.
I can not open a filestream and i can not format the SD with a panda program (post 13).
System.NotSupportedException is the only exception i get.
but i think it is only because the unmount failed (directly after the mount)
When i put a short Thread-sleep before the unmount i have no exeption. So this is not the problem here - you are right.[/quote]
I think we are all way off. Please stick to one example, the one Aron provided and tell us what you see and at what line.
when
i use the code from Reply 16 (Arons example)
I get this because the SD is not recognized as formatted
so that the unmount will follow direktly after the mount. Only a timing problem in this case. I can set a short thread.sleep before the unmount and everything is ok.
When i start Arons code with the timing taken care of, i get no error.
Debug-Output: Storage is not formatted. Format on PC with FAT32/FAT16 first.
That is all - my formatted SD is not detected as formated.
There are now two developers reporting the same problem with the Panda II SD Card reader.
The driver reports that the card is not formatted, and it fails when they try to format it on the Panda II.
They are both on the latest firmware, and they are both using external power supplies.
Thomas, did you use the sd card before for other purposes, like updating/flashing an android tablet? I had issues in the past with sd cards.(not in combination with GHI hardware), but i solved it using a utility program called killdisk (http://www.killdisk.com/) it was a partition table issue. Try to use killdisk to kill all partitions and erase the card, 2nd format using windows and try again.
BE CAREFULL USING KILLDISK, MAKE SURE YOU SELECT YOUR SD CARD AND NOT YOUR HARD-DISK
I used Killdisk to kill the partition, also MiniTool Partition.
I formated the SD-Card with windows or the MiniTool in many different FAT16 oder FAT32 Settings.
Unfortunately… i guess there’s only one option left and thats to return your hardware or maybe exchange the panda with your local supplier of you bought it locally.
Hi all.
This very morning, I tried to use to my own Panda II’s SD-card reader. Its a microSD card manufactured by Kingston, with 2GB capacity. And no, its new. Hasn’t been used for anything else before. Used my cellphone to format it and store a few files. I get the following exception.
using System;
using System.IO;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.IO;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.IO;
namespace NETMFSDCardHello
{
public class Program
{
public static void Main()
{
// Blink board LED
bool ledState = false;
PersistentStorage _stor = new PersistentStorage("SD");
_stor.MountFileSystem();
VolumeInfo[] infos = VolumeInfo.GetVolumes();
foreach (VolumeInfo s in infos)
{
Debug.Print(s.Name + " , " + s.TotalSize.ToString());
}
Thread.Sleep(20);
_stor.UnmountFileSystem();
OutputPort led = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, ledState);
while (true)
{
// Sleep for 500 milliseconds
Thread.Sleep(500);
// toggle LED state
ledState = !ledState;
led.Write(ledState);
}
}
}
}
It also doesn’t matter whether or not I include the 20-ms thread sleep code. The exception still occurs.
When I got my Panda II, I used the newly bundled USBIzi updater app to update it.
I’d read through the posts on this topic last night, and decided to give mine a try. Got the same problem.
I’m not sure how valid an observation this is, but perhaps it has something to do with the version of Visual Studio?
Here’s what I mean.
Pierre, the initial poster, is using VS2010 Ultimate like me. Like him, no other code reports errors. Jasdev also stated that two developers had the same problem. I guessed that if they’re developers and not quite hobbyists, they may likely be using a version of VS2010 that IS NOT Express. Thomas also used VS2010 Professional, not Express. Could this possibly be a problem?
I use Win7 Home Premium x64. Perhaps its a 64-bit issue?
I’m currently in Africa, and it will be nigh impossible to send my board back. I only got it yesterday :’(
These may be baseless observations, but its worth a shot if it means I don’t have to wait a month for a new Panda II.