Open vgolovanov opened 7 years ago
The current STM solution only has 4 PWM channels (PD12-PD15) assigned.
Are you using something like:
private static PWM _pwm = new PWM(Cpu.PWMChannel.PWM_0, 4000, 0.5, false);
Yes, i used the code like this with different variations Cpu.PWMChannel.PWM_0, with channel numbers from PWM_0 to PWM_10. Also i tried to change pins assignment in platform file. I tried already compiled firmware from other source. Also yesterday i compiled firmware for Disco429 and result the same.
Add this to TinyCLR.proj
<Import Condition="'$(PWM_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\PWM.featureproj" />
Hi Justin.
That solved my problem. :-) Thank you very much for your time and help.
Best regards, Vyacheslav.
Hi. I'm facing a problem with PWM code on STM32F4DISCOVERY. I tried different variations for pin assignment, but problem the same. At the moment of PWM object initialization, i'm getting error: "An unhandled exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.Hardware.PWM.dll".
Also i tried to step in by debugger and get more detailed error, but that information doesn't help me a lot.
Any help or just direction where to dig, is much appreciated. Best regards, Vyacheslav.