Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Not sure how to compile successfully for Teensy 4.0. #46

Open
AdamMarciniak opened this issue Jul 13, 2020 · 1 comment
Open

Not sure how to compile successfully for Teensy 4.0. #46

AdamMarciniak opened this issue Jul 13, 2020 · 1 comment

Comments

@AdamMarciniak
Copy link

I download the github repo and extract it to my Arduino folder in My Documents. Then, I try and run MUP6050IMU.ino file and it says "MadgwickQuaternionUpdate' was not declared in this scope".

If I try and run MPU6050BasicExample.ino it errors out with this:

Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax "-TC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4/imxrt1062.ld" -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672/MPU6050BasicExample.ino.elf" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672\\sketch\\MPU6050.cpp.o" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672\\sketch\\MPU6050BasicExample.ino.cpp.o" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672\\libraries\\Wire\\WireIMXRT.cpp.o" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672\\libraries\\Wire\\WireKinetis.cpp.o" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672/core\\core.a" "-LC:\\Users\\Adam\\AppData\\Local\\Temp\\arduino_build_437672" -larm_cortexM7lfsp_math -lm -lstdc++
C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050BasicExample.ino.cpp.o:(.bss.Ascale+0x0): multiple definition of `Ascale'
C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050.cpp.o:(.bss.Ascale+0x0): first defined here
c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050BasicExample.ino.cpp.o: In function `getGres()':
C:\Users\Adam\Documents\Arduino\MPU6050-master\MPU6050BasicExample/MPU6050BasicExample.ino:237: multiple definition of `Gscale'
C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050.cpp.o:C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch/MPU6050.cpp:169: first defined here
collect2.exe: error: ld returned 1 exit status
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire 
Error compiling for board Teensy 4.0.

I've got .h and .ccp files in the same folder as the example file.

@kriswiner
Copy link
Owner

kriswiner commented Jul 13, 2020 via email

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

No branches or pull requests

2 participants