Hi
I am studying calibration process in crazyflie. For this I wanted to compile magnetometer's driver. But I have a lot of error messages.
Thanks for help
Jean-Claude
[SOLVED] hmc5883l compilation
-
Mitteau
- Expert
- Posts: 248
- Joined: Fri Jan 29, 2016 6:00 am
[SOLVED] hmc5883l compilation
Last edited by Mitteau on Wed Sep 13, 2017 6:36 am, edited 1 time in total.
-
arnaud
- Bitcraze
- Posts: 2538
- Joined: Tue Feb 06, 2007 12:36 pm
Re: hmc5883l compilation
Is that straight from git or have modified any files?
From the error is seems that at least includes are missing. Maybe there is a missing semicolon in one header file?
From the error is seems that at least includes are missing. Maybe there is a missing semicolon in one header file?
-
Mitteau
- Expert
- Posts: 248
- Joined: Fri Jan 29, 2016 6:00 am
[SOLVED] Re: hmc5883l compilation
HI
My compiler said:
"conflicting types"
between line 56 of hmc5883l.c and line 113 of hmc5883l.h
So I put I2C_Dev place of I2C_TypeDef in header file and compilation is OK...
I apologize.
Jean-Claude
My compiler said:
"conflicting types"
between line 56 of hmc5883l.c and line 113 of hmc5883l.h
So I put I2C_Dev place of I2C_TypeDef in header file and compilation is OK...
I apologize.
Jean-Claude
-
arnaud
- Bitcraze
- Posts: 2538
- Joined: Tue Feb 06, 2007 12:36 pm
Re: hmc5883l compilation
Hi,
Nice that it worked
. I recognize this avalanche of error as header files problems, C is pretty bad at catching this kind of errors...
Nice that it worked
-
Mitteau
- Expert
- Posts: 248
- Joined: Fri Jan 29, 2016 6:00 am
Re: hmc5883l compilation
Hi
In C language, the first error is often the banana skin.
Jean-Claude
In C language, the first error is often the banana skin.
Jean-Claude