-
Notifications
You must be signed in to change notification settings - Fork 190
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
Comments
Not sure what the problem could be, the MadgwickQuaternionUpdate function
is in the MPU6050IMU.ino file...
…On Sun, Jul 12, 2020 at 9:33 PM Adam Marciniak ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTDLKXAPVQQFIE3X4NLJ43R3KFAFANCNFSM4OYFGVYQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
I've got .h and .ccp files in the same folder as the example file.
The text was updated successfully, but these errors were encountered: