mpu6050 Component
Posted: Sat Sep 21, 2013 10:37 am
Hi
I am unable to compile to chip when I use the i2c components.
If I add the mpu6050 component to FC6 for a 30f3013 I get the following messages, do I have to add anything to the Cal_I2C.C Function?:-
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_comp.bat "Flowcode1" "C:\Users\Ando's\DOWNLO~1\" "30F3013"
Launching compiler...
C:\Users\Ando's\DOWNLO~1>pic30-gcc -c -mcpu="30F3013" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "Flowcode1".c -o "Flowcode1".o
In file included from C:\Program Files\Flowcode 6\CAL\includes.c:155,
from Flowcode1.c:251:
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_1':
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:111: error: 'I2C1CONbits' undeclared (first use in this function)
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:111: error: (Each undeclared identifier is reported only once
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:111: error: for each function it appears in.)
etc
Thanks
Andy
I am unable to compile to chip when I use the i2c components.
If I add the mpu6050 component to FC6 for a 30f3013 I get the following messages, do I have to add anything to the Cal_I2C.C Function?:-
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_comp.bat "Flowcode1" "C:\Users\Ando's\DOWNLO~1\" "30F3013"
Launching compiler...
C:\Users\Ando's\DOWNLO~1>pic30-gcc -c -mcpu="30F3013" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "Flowcode1".c -o "Flowcode1".o
In file included from C:\Program Files\Flowcode 6\CAL\includes.c:155,
from Flowcode1.c:251:
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_1':
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:111: error: 'I2C1CONbits' undeclared (first use in this function)
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:111: error: (Each undeclared identifier is reported only once
C:\Program Files\Flowcode 6\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:111: error: for each function it appears in.)
etc
Thanks
Andy