MPU 60X0 Sample Code

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Jevermeister
Posts: 13
Joined: Sun Nov 11, 2012 8:19 pm

Re: MPU 60X0 Sample Code

Post 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?
Jevermeister
Posts: 13
Joined: Sun Nov 11, 2012 8:19 pm

Re: MPU 60X0 Sample Code

Post 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
Post Reply