You are reading a single comment by @asez73 and its replies. Click here to read the full conversation.
  • 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.

    >reset();
    =undefined
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v72 Copyright 2014 G.Williams
    >echo(0);
    =undefined
    34.60793133333
    NaN
    35.795147
    1.04880302380
    36.89486772619
    0.98272696428
    38.47629082142
    1.45765674999
    39.73406741666
    1.14529867857
    >dump()
    setWatch(function (e) {  console.log(getTime());
      console.log(e.time - e.lastTime); }, "C13", { repeat:true, edge:'falling', debounce : 10 });
    =undefined
    222.45914798809
    182.61455511904
    224.05011024999
    1.48233489285
    226.35892582142
    2.15741746428
    227.08728361904
    0.58484489285
    227.80201604761
    0.54634851190
    228.63148809523
    0.67798594047
    > 
    
About

Avatar for asez73 @asez73 started