This is almost exactly what I am trying to do and would be the perfect starting place:
https://github.com/stm32duino/STM32Exam ... rement.ino but I can not get this to work. It compiles and runs but outputs "Frequency: 0" constantly.
The example uses pin D2 which is not present on my board. So I have updated that to pin PB0 which is the only change I have made to the example.
The example also states: "Note: Please verify that for your board,'pin' used for PWM has HardwareTimer capability" Does it really mean PWM in that comment? It feels like this is left over from the other example in that folder that uses PWM.
I saw some other thread where the user was also getting "Frequency: 0" and they changed to another pin and it started working.
How can I find what pins support interrupts? or has "HardwareTimer" capability? Reading this https://stm32f4-discovery.net/2014/08/s ... -tutorial/ it looks like PB0 should be an acceptable pin, on line0. Is this accurate resource? Its not really for stm32duino.
What am I missing? Is there something else I need to change in that example to use my desired pin?
Are there any other examples of using simple interrupts like the above example but for the F4 series?
What I am trying to achieve is to measure pulses per minute. Blocking solutions will not work as I have other real time code that needs to sun smooth.
Many thanks y'all
