The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
try { string[] directories = Directory.GetDirectories(""); string dir = ""; Debug.Print("Directories count: " + directories.Length); for (int i = 0; i < directories.Length; i++) { Debug.Print("Directory: " + directories[i]); if (directories[i].ToLower().IndexOf("sd") >= 0) { dir = directories[i]; Debug.Print("Found: " + dir); } }
Debug.Print("Finding files"); string[] files = Directory.GetFiles(dir); Debug.Print("File count: " + files.Length); for (int i = 0; i < directories.Length; i++) { Debug.Print("Files: " + files[i]); }
Stream st = new FileStream(dir + @"Log.txt", FileMode.OpenOrCreate); } catch (Exception ex) { Debug.Print("Error: " + ex); }
And this is the log:
Directories count: 1 Directory: SD Found: SD Finding files A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.IO.dll A first chance exception of type 'System.IO.IOException' occurred in System.IO.dll Error: System.IO.IOException
Update- I was able to flash with the DFU file, and execute simple programs. I still have not been able to set the MAC address with the same symptom that I posted in the previous message's screengrab.
Any suggestions?
Thanks
Have you ever installed the v4.3 framework ? - Because im getting thet error if im using the tool from 4.3 to set mac adresse on a board with 4.2. Use the tool from 4.2 to set the mac address and it should work