I used GCC 4.2.1 to build the latest code available (4.1.0.update6). I loaded the TinyBooterDecompressor via samba (the one available here in the forum) because of its small size. Then I used MFDeploy to upload ER_CONFIG and ER_FLASH produced by GCC.
Blinking the LED works. However the network and SD do not work.
If I try this:
var interface = NetworkInterface.GetAllNetworkInterfaces()[0];
I get this exception:
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in Netduino1stApp.exe #### Exception System.IndexOutOfRangeException - 0xa9000000 (1) #### #### Message: #### Netduino.Program::Main [IP: 0005] #### A first chance exception of type 'System.IndexOutOfRangeException' occurred in Netduino1stApp.exe An unhandled exception of type 'System.IndexOutOfRangeException' occurred in Netduino1stApp.exe
Also if I try this:
if (File.Exists(@"\SD\sample.bmp")) Debug.Print("Exists!");
I get this exception:
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in Netduino1stApp.exe #### Exception System.IO.IOException - CLR_E_INVALID_DRIVER (1) #### #### Message: #### Microsoft.SPOT.IO.NativeIO::GetAttributes [IP: 0000] #### #### System.IO.File::Exists [IP: 001a] #### #### Netduino.Program::Main [IP: 0010] #### A first chance exception of type 'System.IO.IOException' occurred in Microsoft.SPOT.IO.dll
If I load the stock 4.1.0.6 firmware available in the forum, everything works, and these 2 lines of code return the expected result.