Problem compiling EdTracker

I'm building an EdTracker using an Arduino Micro and a MPU9250 breakout board.

I'm using the code from GitHub - brumster/EDTracker2: EDTracker2 Arduino sketches for Invensense MPU-xx50 based devices but when compiling I'm getting the error:

inv_mpu.c:122:2: error: #error Which gyro are you using? Define MPUxxxx in your compiler options.

However I have a #define MPU9250 at the top of the sketch...

Any ideas ?

It looks like the problem is detected in "inv_mpu.c" which is NOT your sketch. The library is expecting the define to be in effect when inv_mpu.c is compiled. The Arduino IDE doesn't have an easy way for you to insert defines in your build so I think the best way

Have you installed the edtracker core?

NOTE: To make the build process easier, all the libraries and relevant hardware settings are packaged up and available within the separate repo here :

I installed the Edtracker core in

windows\program\arduino\hardware\edtracker....

That's correct ?

In the meantime I added the #define to inv_mpu.c and the define error disappeared, but replaced by another one:

PluggableUSB.h:35:22: error: 'USBSetup' has not been declared

I suppose there's some mixing going up in the libraries...

I think maybe the USB support was changed since the sketch was written. I would expect the USB part of the edtracker core would take care of if.

Issue solved.
I had installed the edtracker core but didn't realized that I had to select the EdTracker board inside the Arduino IDE.
After that, it compiled first time.

Thanks

I had a sismilar problem and solved it thanks to you. Grateful, have a nice day!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.