Have you updated your firmware from st.com?
They had some problems with default frequencies set to a wrong, low, value until 'recently'. You might have received an out of date one.
Are you using an NucleoF401RE or an NucleoF411RE?
One of the differences between F411 and F401 is the basic frequencies of processors. The bins are different specifically about the frequencies and the ram sizes. Actually that's almost all about the differences.
The 1v71 version is for F401, not F411.
Now, the F411 version, posted as an attachment in this post, was only tested by @ac413 and it might be wrong on timings. I can't test it here since I don't have one.
Here is my test of your code on an NucleoF401RE.
I pushed the blue button, alias BTN1 or C13, approximately once a second.
After the dump(), I waited, see lines 25 and 26, then I tried again more or less once a second: It seems to be correct to me.
Don't hesitate to copy your left pane of the web ide.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi @Manxome,
That's an interesting problem.
Have you updated your firmware from st.com?
They had some problems with default frequencies set to a wrong, low, value until 'recently'. You might have received an out of date one.
Are you using an NucleoF401RE or an NucleoF411RE?
One of the differences between F411 and F401 is the basic frequencies of processors. The bins are different specifically about the frequencies and the ram sizes. Actually that's almost all about the differences.
The 1v71 version is for F401, not F411.
Now, the F411 version, posted as an attachment in this post, was only tested by @ac413 and it might be wrong on timings. I can't test it here since I don't have one.
Here is my test of your code on an NucleoF401RE.
I pushed the blue button, alias BTN1 or C13, approximately once a second.
After the dump(), I waited, see lines 25 and 26, then I tried again more or less once a second: It seems to be correct to me.
Don't hesitate to copy your left pane of the web ide.