qqqlab / madflight

Flight Controller for Arduino ESP32 / RP2350 / RP2040 / STM32
https://madflight.com
MIT License
117 stars 22 forks source link

Unable to compile example for RP2040 #9

Closed christianhalter closed 7 months ago

christianhalter commented 7 months ago

I installed the madflight library in Arduino IDE 2.3.2 and tried to compile the Quadcopter example for RP2040. This is the error message:

In file included from C:\Users\instalador\Documents\Arduino\libraries\madflight\src/madflight_board_default_RP2040.h:56:0,
                 from C:\Users\instalador\Documents\Arduino\libraries\madflight\src/madflight/hw_RP2040/hw_RP2040.h:18,
                 from C:\Users\instalador\Documents\Arduino\libraries\madflight\src/madflight.h:35,
                 from C:\Users\instalador\AppData\Local\Temp\.arduinoIDE-unsaved2024329-20448-q43dyj.jlxdh\Quadcopter\Quadcopter.ino:198:
C:\Users\instalador\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\4.1.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/common/pico_stdlib/include/pico/stdlib.h:11:10: fatal error: pico/stdio.h: No such file or directory
 #include "pico/stdio.h"
          ^~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1
christianhalter commented 7 months ago

Solved installing https://github.com/earlephilhower/arduino-pico