Well, I have three Panda II boards and two different types of SD cards. One is a SanDisk 2GB, the other a noname 4GB one. The 4 GB one did not work in my CANxtra, however, it did work in two of my Panda II’s. The SanDisk one worked fine in the two Panda IIs that worked and in the CANxtra. I spent some time troubleshooting the problem and discovered that there must have been a cold solder joint on the SD card holder in the Panda II that did not work, since it is now functional (as long as I don’t hot plug the SD card).
While it is easy to blame bad SD cards and bad power supplies for all problems, it seems to me that FEZ’s are very sensitive when it comes to SD cards and don’t deal with minor issues that they probably should be able to handle.
Now that I have a SD card that works in my CANxtra and other ones that work in my Panda II’s, I can probably make my project work. But, not being able to remove and replace the SD card in the Panda II is a limitation that I would rather not have.
So, the question for GHI is the Panda II supposed to be able to handle inserting an SD card while the Panda II is running?
Here is the sample code I have been using:
public class Program
public static void Main()
// SD Card is inserted
// Create a new storage device
sdPS = new PersistentStorage("SD");
// Mount the file system
// Assume one storage device is available, access it through
// Micro Framework and display available files and folders:
Debug.Print(DateTime.Now.ToString() + " Getting files and folders:");
string rootDirectory =
string files = Directory.GetFiles(rootDirectory);
string folders = Directory.GetDirectories(rootDirectory);
Debug.Print("Files available on " + rootDirectory + ":");
for (int i = 0; i < files.Length; i++)
Debug.Print("Folders available on " + rootDirectory + ":");
for (int i = 0; i < folders.Length; i++)
Debug.Print(DateTime.Now.ToString() + " Storage is not formatted. Format on PC with FAT32/FAT16 first.");
Debug.Print(DateTime.Now.ToString() + " Ooops, it seems there is no SD card.");
if (sdPS != null) sdPS.Dispose();
} while (true);
This is just the Panda II with a 9V supply. I even tried using a bench supply set at 5V piped into the 5V line and at 3.3V piped into the 3.3V line. On one Panda II everytime I insert the card it resets the device. On the other two, only sometimes when it is on the power supply does it reset. I have tried adding a .1uf and a 10mf cap, but none of these have helped the board that resets always. Based on my results it certainly seems flakey.
Any other ideas?