[SOLVED] hmc5883l compilation

Post here to get support
Post Reply
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

[SOLVED] hmc5883l compilation

Post 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.
SAM_3263_r.JPG
Thanks for help
Jean-Claude
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

Post 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?
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

[SOLVED] Re: hmc5883l compilation

Post 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
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: hmc5883l compilation

Post 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...
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: hmc5883l compilation

Post by Mitteau »

Hi
In C language, the first error is often the banana skin.
Jean-Claude
Post Reply