But its for the domino. and the panda doesn’t support hosting when it tries to create the Persistant storage it whinges
[quote]Error 1 The type ‘GHIElectronics.NETMF.USBHost.USBH_Device’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘GHIElectronics.NETMF.System, Version=4.1.3.0, Culture=neutral, PublicKeyToken=null’. C:\Documents and Settings\Ian\Local Settings\Application Data\Temporary Projects\FEZ Panda Application1\Program.cs 30 17 FEZ Panda Application1
[/quote]
Copy the example as is. It should throw an exception if you are still using USB debugging!
Connect MODE pin to GND, it will switch to serial debugging as described in ebook.
Cheers Mike!! I have to shelve this until next Monday as I’m off for the weekend.
I suppose thats why the mode pin is on the SD connector!! I’ll only need telling once.
I’ll put a switch on there to enable or disable USB debugging.
Right!! Weekend was all right, got a bit drunk, but now I’m back at work.
I’ve now a switch on the mode input.
I’ve downloaded the code for Mass Storage again.
I’ve deployed to the panda.
If the switch is in USB debug mode all is well! However switching to serial debug and rebooting still does nothing. So its either the SD wiring or the SD card, I’m going to try an SD example that will allow me to debug so I can check my interface.
Cheers Ian
I have tried Chris’s SD card example off fezzer and it runs fine so the SD card is ok and so is my wiring… AARRGGHH!! I wonder why the Ebook example wont run?
I have deployed this to the Panda (Exactly, line for line )
using System;
using System.IO;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.USBClient;
using GHIElectronics.NETMF.IO;
using GHIElectronics.NETMF.Hardware;
namespace USBClient_Example
{
public class Program
{
public static void Main()
{
// Check debug interface
if (Configuration.DebugInterface.GetCurrent() == Configuration.DebugInterface.Port.USB1)
throw new InvalidOperationException("Current debug interface is USB. It must be changed to something else before proceeding. Refer to your platform user manual to change the debug interface.");
// Start MS
USBC_MassStorage ms = USBClientController.StandardDevices.StartMassStorage();
// Assume SD card is connected
PersistentStorage sd;
try
{
sd = new PersistentStorage("SD");
}
catch
{
throw new Exception("SD card not detected");
}
ms.AttachLun(0, sd, " ", " ");
// enable host access
ms.EnableLun(0);
Thread.Sleep(Timeout.Infinite);
}
}
}
There is no " DING / DONG " from the PC when it runs, not even a notification
mode is next to the GnD pin on the SD connector at the rear of the Panda.
Must be that one as the LED is off when this is switched to GnD.
(Its the only one called MODE)
I’m going to try running it from a separate power supply, just in case!
Its Night time here and its at work so I’ll give it another go tomorrow.
A tiny spec of solder on the breadboard connected the MODE pin to the 3v3 rail so as soon as I tried serial mode, IC4 got a bit warm… well scorching actually…
Quick repair and Panda now boots to Mass Storage Mode…
Panda seems to be ok… I might replace the 3v3 reg ( unless its designed with current limiter? ) I’ll check the data sheet.