Skip to content
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

compiler error #45

Closed
megarduino opened this issue Aug 27, 2013 · 3 comments
Closed

compiler error #45

megarduino opened this issue Aug 27, 2013 · 3 comments

Comments

@megarduino
Copy link

get a very long list of error messages by compiling MPU6000_DMP6.ino.
use Arduino 1.0.5 (tried also 1.5.2, same list), selected board is Mega 2560
I uploaded the i2cdevlib-master today and copied all necessary files in the libraries folder. Do I use an old file or wrong Arduino version?

list starts with
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp: In member function 'void MPU60X0::initialize()':
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:69: error: 'SPI' was not declared in this scope
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp: In member function 'uint8_t MPU60X0::getAuxVDDIOLevel()':
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: invalid conversion from 'int' to 'uint8_t_'
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: initializing argument 4 of 'static int8_t I2Cdev::readBit(uint8_t, uint8_t, uint8_t, uint8_t_, uint16_t)'
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: invalid conversion from 'uint8_t*' to 'uint16_t'
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: initializing argument 5 of 'static int8_t

@jrowberg
Copy link
Owner

Hi @megarduino, The "MPU6000_DMP6.ino" file and anything that deals with SPI isn't part of the I2Cdev library officially (at least not yet); where did that file come from? You may have forgotten to add this line to the main sketch:

#include <SPI.h>

That might help, though the other errors may still occur. I'm not familiar with the SPI ported version of the code, so I'm afraid I probably can't help much.

@megarduino
Copy link
Author

Hi,
it seems to be solved, I installed Arduino software complete new and put the I2Cde library in the library folder. Compiling the MPU6000_DMP6.ino (this file I found in the mpu6050\examples\mpu6050_DMP6 folder) works well, even if it is not very stable, after few seconds of nice values I get a lot of nan and other sensless values. I will check my cable connections.

@jrowberg
Copy link
Owner

Closing ancient issue for cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants