I am trying to get an RGB Led working. I am using some code from the web.
The problem is that every time I deploy it, it comes up with the following error:
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.SPOT.Hardware.dll
and then you an not connect any more you need to flash the firmware to be able to do anything.
I am using firm ware 22.214.171.124 and the right SDK 4.2.
I have tried different I/O (4,5,6) and combinations.
I have tested the board with, a basic blinky app and a push button app and all is working
using System; //use base classes
using System.Threading; //use threading classes
using Microsoft.SPOT; //use smart personal objects technology classes
using Microsoft.SPOT.Hardware; //use hardware related SPOT classes
using SecretLabs.NETMF.Hardware; //use Secret Labs hardware framework
using SecretLabs.NETMF.Hardware.Netduino; //use the Netduino specific classes
namespace NCIR01 /// Define the namespace we are in ///
public class Program
public static void Main() /// The Main loop (run at power up) ///
PWM rgb1 = new PWM(Pins.GPIO_PIN_D8);
PWM rgb2 = new PWM(Pins.GPIO_PIN_D9);
PWM rgb3 = new PWM(Pins.GPIO_PIN_D10);
while (true) /// Do Forever ///
} /// Close Forever Loop ///
} /// Close the Main() Loop ///
} /// Close the Program Loop ///
} /// Close the Namespace Loop ///
Any ideas would help