What image are you using? What is the version of the XDK?
Do you have MRAA and UPM Library installed, try with:
- echo "src maa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/intel-iotdk.conf
- opkg update
- opkg upgrade
By default the example uses mraa number (3), but according to the pins map http://iotdk.intel.com/docs/master/mraa/edison.html that number is unused, then i used mraa number (0) which is PWM2 and It's working now.
My Intel XDK was actually outdated, there's a lot of new examples.
Thanks for your help Sergio.