Page 1 of 1
[SOLVED] hmc5883l compilation
Posted: Sat Sep 09, 2017 4:32 pm
by Mitteau
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
Re: hmc5883l compilation
Posted: Mon Sep 11, 2017 8:39 am
by arnaud
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?
[SOLVED] Re: hmc5883l compilation
Posted: Mon Sep 11, 2017 9:49 am
by Mitteau
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
Re: hmc5883l compilation
Posted: Mon Sep 11, 2017 12:04 pm
by arnaud
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...
Re: hmc5883l compilation
Posted: Wed Sep 13, 2017 6:36 am
by Mitteau
Hi
In C language, the first error is often the banana skin.
Jean-Claude