SecretLabs.NETMF.Hardware.PWM pwm = new SecretLabs.NETMF.Hardware.PWM(Pins.GPIO_PIN_D7);
const uint period = 3 * 1000 * 1000; // 3 ms
const uint duration = 2 * 1000 * 1000; // 2 ms
pwm.SetPulse(period, duration);
(from here: http://10rem.net/blo...-modulation-pwm )
When i deploy this code, device passes in a state, where i cannot deploy any other projects.
It shows "Preparing to deploy asseblies to the device" for long time and then error "Unable to communicate with device - USB:Netduino".
When i reattaching usb cable it sends by serial port this:
EXCEPTION 0x05:
cpsr=0x21000000
pc =0x08045306
lr =0x08048d17
sp =0x2001fc90
r00 =0x4001fc04
r01 =0x00000000
r02 =0x00000001
r03 =0xf0000000
r04 =0x40010400
r05 =0x00000000
r06 =0xffffffff
r07 =0x00000002
r08 =0x20001764
r09 =0x20001130
r10 =0x00000000
r11 =0x00000000
r12 =0xf0000000
reflashing firmware returns it to normal mode, but what is it? How can I use PWM without this problems?