Need help, Why is this code running much slower than Uno?

Post your cool example code here.
User avatar
zoomx
Posts: 352
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Need help, Why is this code running much slower than Uno?

Postby zoomx » Wed Jul 27, 2016 6:15 am

Nutsy wrote:Hmm im getting spi was not declared in this scope error... Is it ina specific library?

If some libraries use SPI or Wire library you must put a #include in your sketch. I believe that older IDEs don't require it but newer IDE require it.
It is the same using Arduino boards.
So if you get that error just put the #include.

It is an IDE requirements because before compiling the IDE copies all files in a temporary folder but seems that it fails with SPI or Wire library when the #include is only in the library.

madias
Posts: 812
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Need help, Why is this code running much slower than Uno?

Postby madias » Wed Jul 27, 2016 7:49 am

AS I wrote: You have to search WITHIN the libraries for every "SPI" related stuff, not in the sketch.
The fastwire library has an extra STM32 part of code, but I'm sure that it was not written for STM32duino, but MBED or something. I just wonder that the library compiles. Maybe in soft SPI mode - you have to look at the verbose output of the IDE if there are any "warning" messages.


Return to “Code snipplets”

Who is online

Users browsing this forum: No registered users and 1 guest