How to link a static library to my sketch ?

Hi,

I tried to use the original invense motion driver 6.12 9 axis with MPU 9250.

I made some fixes ... it works with standard mpu/dmp commands.

Now i try to add the mpl functions that are in liblibmplmpu.a (static pre-compiled library).
I don't know how to link to the rest of the project.

How can do that ?

Regards
Cyril

Was the static pre-compiled library liblibmplmpu.a compiled for an Arduino? It is possible but I doubt it. Which Arduino?

Some links would be helpful as well.

Hi,

This static library is compiled ARM Cortex M3 (compatible with arduino Due assembler instructions sets), there are also avalaible the M0, M0+ and M4 pre-compiled static libraries.

The question is how to link liblibmplmpu.a to my solution. I use a VS micro (provide Arduino support in Visual studio).

I use a VS micro

Is that a Due? If not, you can NOT link a static library compiled for a Due when compiling code for a Micro.

yes i use a Arduino Due.

yes i use a Arduino Due.

I use a VS micro

Make up your mind.

i tried to add switches -l & -L to gcc but without any success.I don't extacly how to do that.

I'm guessing they mean the Visual Micro plugin for Visual Studio/Atmel Studio that makes it work like the Arduino IDE, though I don't know why they couldn't just say that from the start. I've never heard anyone call it "VS micro".

i use Visual Micro plugin.

Here is my source code base on invensense motion drive 6.12

DueMpu9250.zip (1.18 MB)