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

[Arduino IDE] Error Compiling for Raspberry Pi Pico #50

Open
AtharvaBhorpe opened this issue Jun 8, 2022 · 0 comments
Open

[Arduino IDE] Error Compiling for Raspberry Pi Pico #50

AtharvaBhorpe opened this issue Jun 8, 2022 · 0 comments

Comments

@AtharvaBhorpe
Copy link

I tried to compile the "Quaternion" example for RPi Pico from Arduino IDE using the "Arduino MBED OS for RP2040 Boards" Board Library by Arduino itself.
But I get the following error when Compiling:

"""
WARNING: library SparkFun_MPU-9250-DMP_Arduino_Library-master claims to run on samd architecture(s) and may be incompatible with your current board which runs on mbed_rp2040 architecture(s).
In file included from C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\variants\RASPBERRY_PI_PICO/pinmode_arduino.h:30:0,
from C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\cores\arduino/Arduino.h:26,
from C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\arduino_mpu9250_clk.c:19:
C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\cores\arduino/api/Common.h:76:9: error: unknown type name 'bool'
typedef bool boolean;
^~~~
In file included from C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\variants\RASPBERRY_PI_PICO/pinmode_arduino.h:30:0,
from C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\cores\arduino/Arduino.h:26,
from C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu_dmp_motion_driver.c:35:
C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\cores\arduino/api/Common.h:76:9: error: unknown type name 'bool'
typedef bool boolean;
^~~~
In file included from C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\variants\RASPBERRY_PI_PICO/pinmode_arduino.h:30:0,
from C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\cores\arduino/Arduino.h:26,
from C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu.c:39:
C:\Users\athar\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\3.1.1\cores\arduino/api/Common.h:76:9: error: unknown type name 'bool'
typedef bool boolean;
^~~~
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu.c: In function 'reg_int_cb':
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu.c:52:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu_dmp_motion_driver.c: In function 'dmp_set_accel_bias':
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu_dmp_motion_driver.c:605:5: warning: implicit declaration of function '__no_operation'; did you mean '__section'? [-Wimplicit-function-declaration]
__no_operation();
^~~~~~~~~~~~~~
__section
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu.c: In function 'mpu_reg_dump':
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu.c:47:19: warning: implicit declaration of function '_MLPrintLog' [-Wimplicit-function-declaration]
#define log_i _MLPrintLog
^
C:\Users\athar\Documents\Arduino\libraries\SparkFun_MPU-9250-DMP_Arduino_Library-master\src\util\inv_mpu.c:612:9: note: in expansion of macro 'log_i'
log_i("%#5x: %#5x\r\n", ii, data);
^~~~~
exit status 1
Error compiling for board Raspberry Pi Pico.
"""

How can I get around this error?

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

1 participant