Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error compiling Makefile in firmware #2

Open
bishops1101 opened this issue Oct 30, 2016 · 0 comments
Open

Error compiling Makefile in firmware #2

bishops1101 opened this issue Oct 30, 2016 · 0 comments

Comments

@bishops1101
Copy link

arm-none-eabi-gcc -I./ -I./spl/CMSIS -I./spl/CMSIS/inc -I./spl/inc -I./libfixmath -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -c -fno-common -O0 -g -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections IMU/MPU6050/MPU6050.c -o IMU/MPU6050/MPU6050.o
In file included from IMU/MPU6050/MPU6050.h:39:0,
from IMU/MPU6050/MPU6050.c:32:
IMU/MPU6050/MPU6050.c: In function 'MPU6050_I2C_Init':
IMU/MPU6050/HAL_MPU6050.h:54:40: error: 'MPU6050_SCL__PIN' undeclared (first use in this function)
#define MPU6050_I2C_SCL_Pin MPU6050_SCL__PIN
^
IMU/MPU6050/MPU6050.c:311:33: note: in expansion of macro 'MPU6050_I2C_SCL_Pin'
GPIO_InitStructure.GPIO_Pin = MPU6050_I2C_SCL_Pin | MPU6050_I2C_SDA_Pin;
^
IMU/MPU6050/HAL_MPU6050.h:54:40: note: each undeclared identifier is reported only once for each function it appears in
#define MPU6050_I2C_SCL_Pin MPU6050_SCL__PIN
^
IMU/MPU6050/MPU6050.c:311:33: note: in expansion of macro 'MPU6050_I2C_SCL_Pin'
GPIO_InitStructure.GPIO_Pin = MPU6050_I2C_SCL_Pin | MPU6050_I2C_SDA_Pin;
^
IMU/MPU6050/HAL_MPU6050.h:55:40: error: 'MPU6050_SDA__PIN' undeclared (first use in this function)
#define MPU6050_I2C_SDA_Pin MPU6050_SDA__PIN
^
IMU/MPU6050/MPU6050.c:311:55: note: in expansion of macro 'MPU6050_I2C_SDA_Pin'
GPIO_InitStructure.GPIO_Pin = MPU6050_I2C_SCL_Pin | MPU6050_I2C_SDA_Pin;
^
IMU/MPU6050/HAL_MPU6050.h:66:38: error: 'MPU6050_SCL__PORT' undeclared (first use in this function)
#define MPU6050_I2C_Port MPU6050_SCL__PORT
^
IMU/MPU6050/MPU6050.c:314:13: note: in expansion of macro 'MPU6050_I2C_Port'
GPIO_Init(MPU6050_I2C_Port, &GPIO_InitStructure);
^
Makefile:80: recipe for target 'IMU/MPU6050/MPU6050.o' failed
make: *** [IMU/MPU6050/MPU6050.o] Error 1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant