9 years, 11 months ago.

FastIO on Nucleo F411RE

I tried using FastIO with an F411RE board, just by copy/paste/renaming the the F401RE header files. It seems to work without problems with F411RE as well.

Great library, by the way. Thanks!

Measurements with the test bench shows results more or less similar to F401RE:

Starting test bench Verifying basic behavior Basic behavior verified Measuring fixed write pattern speed Standard took 10.99 cycles, FastIO took 2.00 cycles, which is 18% Standard took 110ns, FastIO took 20ns Measuring variable write pattern speed Standard took 15.00 cycles, FastIO took 6.01 cycles, which is 40% Standard took 150ns, FastIO took 60ns Measuring read speed Standard took 12.02 cycles, FastIO took 5.02 cycles, which is 42% Standard took 120ns, FastIO took 50ns Measuring toggling using operators speed Standard took 33.53 cycles, FastIO took 5.00 cycles, which is 15% Standard took 335ns, FastIO took 50ns Measuring switching between input and output Standard took 367.84 cycles, FastIO took 5.00 cycles, which is 1% Standard took 3678ns, FastIO took 50ns

Question relating to:

Replacement for regular GPIO (DigitalIn, DigitalOut, DigitalInOut) classes which has superior speed. GPIO, Speed

1 Answer

9 years, 11 months ago.

Hey,

These indeed are pretty much identical as far as I am aware. But thanks for testing, I don't have it myself :). So you didn't had to change anything in the code itself? I included the F411 in the F401 code and it should now be supported by the library directly :).

Erik

Great. No, I did not change anything in the code, just the name of the board.

posted by Tobias Have 23 Dec 2014

Good :). Then if you update the lib it should support it directly now (you can also keep using your version of course, is identical. But when you want to commit your program it can be easier to have no libraries with uncomitted changes).

posted by Erik - 23 Dec 2014

I updated the lib, it works as expected. Thanks!

posted by Tobias Have 23 Dec 2014

Nice, thanks for testing.

posted by Erik - 23 Dec 2014