Page 2 of 2

Re: MPU 60X0 Sample Code

Posted: Sun Nov 11, 2012 8:22 pm
by Jevermeister
First of all, thank you for this sample code.

Can't compile it using ChibiOS 2.4.2 and the KEIL IDE / Compiler.

Code: Select all

Build target 'segway_firmware'
compiling MPU60X0.c...
..\MPU60X0\MPU60X0.c(221): error:  #165: too few arguments in function call
..\MPU60X0\MPU60X0.c(221): error:  #18: expected a ")"
..\MPU60X0\MPU60X0.c(215): warning:  #550-D: variable "mpu_txbuf" was set but never used
..\MPU60X0\MPU60X0.c(215): warning:  #177-D: variable "mpu_rxbuf" was declared but never referenced
..\MPU60X0\MPU60X0.c(241): error:  #165: too few arguments in function call
..\MPU60X0\MPU60X0.c(241): error:  #18: expected a ")"
..\MPU60X0\MPU60X0.c(229): warning:  #550-D: variable "mpu_txbuf" was set but never used
..\MPU60X0\MPU60X0.c(229): warning:  #550-D: variable "mpu_rxbuf" was set but never used
Target not created


The function arguments seem to be okay although?

Re: MPU 60X0 Sample Code

Posted: Fri Jan 11, 2013 3:57 pm
by Jevermeister
any update yet?

ah:

Code: Select all

#define MPU_ADDR         0b1101001

won't work with the build-in KEIL compiler. Needed to convert it to 0x69

regards