I previously had an RC receiver wired to pin 7 of my Netduino Plus 2 so I could control motors with software using input from an RC transmitter and additional overriding sensors. This worked great.
I've elected to go away from RC control to a custom made XBee joystick controller so that the controller can be a much smaller and fit into my coat pocket.
When I hook the XBee's PWM output to an LED, the LED dims and brightens as expected.
When I wire the XBee's PWM output to the Netduino Plus 2 pin 7,I get the Failed Allocation for 5 Blocks warning repeatedly. In turn, the debugger no longer outputs any debug.print commands in its output window and in a few seconds it crashes with the Out of Memory error.
The XBee outputs PWM for 64 microsecond pulses 1023 times a second. I adjusted that on the XBee to 50% output and tried again but get the same result.
Could it be that its just pulsing so fast that the interrupt line is getting interrupted as well? Is there a workaround?