-
Notifications
You must be signed in to change notification settings - Fork 63
SPI Data Throughput on STM32 Nucleo #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @ManeeshSingh1920 , |
Hi PaulZC, Thanks for your reply. Actually I am not doing any manual configuration for Nucleo... I am using the nucleo library for STM32 as given in this link => https://github.com/stm32duino/wiki/wiki/Getting-Started With this I am able to use the Arduino library on STM32 Nucleo board.... I don't need to do any extra setting or configuration.... It just works as an Arduino board only... so I am not doing configuration for SPI or I2C.. It is using Arduino's library for SPI and I2C interface... Since I am able to use this library code on 50ms and 20ms with SPI on my STM32 Nucleo board so it means SPI Interface is working properly.... And Ideally 10ms and 5ms time delay also should work .... because I am not doing any manual setting for SPI or I2C..... Can you confirm if you are able to get data at or above 300hz means 4-5 ms time delay also on Arduino Uno for Enable Rotation Vector Example? And can we use Arduino Uno for BNO080 ? Thanks for your help and support, Regards, |
Hello @ManeeshSingh1920 ,
|
Hi @ManeeshSingh1920 , |
Hi Paul, Thanks for your reply.. I did the changes as suggested by you but unfortunately on 10ms after giving few logs the sensor stops reporting the new data. Plz check the attached Pic and logs on 10ms and 50ms |
Hello @ManeeshSingh1920 , |
Hi Paul, Thanks for your reply.. I did the changes as suggested by you and added only 5ms delay in loop function but unfortunately on 10ms after giving a few logs the sensor stops reporting the new data. Plz check the attached Pic and logs on 10ms. I have Attached the Screenshot and Complete text file log for your reference. Can you check at your side with the above configuration, if you are able to make it run on 10ms and 5ms delay over SPI Rotation Vector Example and if possible please share logs and screenshot? Thanks, Screenshot => ================================================================ Complete Log => |
Hello @ManeeshSingh1920 , Here is what I see when running the code on my SparkFun RedBoard (3.3V): I have:
Here is the complete code: Please make sure that there is nothing in your main loop that is preventing the code from responding quickly to the BNO080. |
Subject of the issue
I am using SPI rotation Vector Example and In that, it is using 50ms time delay between reports... 50ms means approx 20Hz and I tested if I decrease this time delay below 20ms which is 50Hz then BNO not able to send data properly..
But if I test it with I2C interface then I am able to set time delay 3ms which is 333hz which is very High compare to SPI interface.....
but in practice SPi is set at 3Mhz and I2C is set as 400Khz so SPI data rate must be high but BNO is not able to give data rate more than 50Hz in case of SPI...
Is this problem with BNO080 or Sparkfun library.... becoz BNO datasheet says rotation vector conversion speed is 400Hz...
So If I can get 333Hz from I2C then why not from SPI..
Your workbench
I am using the Arduino board also I tested with the STM32 Nucleo 401RE board.
Steps to reproduce
I am doing a connection as per this library and just compiling and running it.. not doing any extra changes.
Expected behavior
SPI data rate must be high
Actual behavior
SPI data rate we are getting very low..
NOTE : - I am not doing any changes in example given or in Library provided... I am using it as it is.
The text was updated successfully, but these errors were encountered: