PWM outputs on Nucleo F401 #4262
Replies: 1 comment
-
Posted at 2014-12-14 by asez73 Hello Rob, Are getting the kind of output below?
Meanwhile for B12 this code doesn't show any thing special about it.
Clearly, the specs of STM32F401RE shows that it should work with B15 pin, it's not a matter of hardware. Actually, Espruino's doc page you mentioned is right. The utilities that generated it are correctly using the pins definitions which are themselves correct too. However, there seem to be a problem in the source/compiled version of Espruino itself. Posted at 2014-12-15 by @gfwilliams Thanks - I'll look further into this. It sure seems like it should work - even the generated pin declarations file seems to be correct, so it's something in the interpreter that is failing to work properly (right at the top of the Posted at 2014-12-15 by @gfwilliams Ok, this'll be fixed in 1v72. In fact it was to do with pin names. Any pin past Posted at 2014-12-15 by Rob Thanks @gfwilliams |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-12-13 by Rob
According to the reference: http://www.espruino.com/ReferenceNUCLEOF401RE
Pin B15 should output PWM, but analogWrite(B15,...) gives an error:
Error: Pin B15 is not capable of PWM output...
The error also says pin B12 is a PWM output (which doesn't seem to work).
I think there is a mismatch somewhere.
Cheers,
Rob
Beta Was this translation helpful? Give feedback.
All reactions