-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
issues in examples directory prevent pico-examples project from building #3004
Comments
I don't use vscode, can you provide equivalent cmake command to test with. |
I am sorry to argue. I do not love VS Code IDE either. However, the Raspberry Pi documentation instructs most of their users to use VS Code. The average Raspberry Pi Pico C/C++ application developer pool will encounter this issue as I described it. It is good to try Raspberry Pi Pico example code using VS Code. Same reason I try the Arduino IDE, too. But from the command line, to build the device_info example:
If you do not make the changes to board_test, msc_dual_lun, and and cdc_msc |
ah thanks, seems like it is more than board.h in pico-sdk. I may make more changes as well, let me reproduce and try to fix it |
@rppicomidi I have tried but it seems to compile the pico-examples just fine with current master (already added board.h to bsp/rp2040/pico_sdk), after cmake step, I can build with make just fine. So I guess we can close this now ?
|
Still seems to be an issue. I have installed the Pico-PIO-USB project using the script.
|
thank you, I am able to reproduce the issue, this should be fixed by #3019 |
Operating System
Linux
Board
Raspberry Pi Pico
Firmware
pico-examples
What happened ?
I tried to use the pico-examples project in the VS Code IDE. The project does not build. Refer to pull request #1627.
How to reproduce ?
export PICO_SDK_PATH=[path to the pico-sdk directory]
export PICO_BOARD=pico
export BOARD=raspberry_pi_pico
export FAMILY=rp2040
code
pico-examples
project directory where you cloned itCMakeLists.txt
files cannot execute thefamily_configure_device_example()
call.If I replace the last line of each
CMakeLists.txt
withfamily_configure_device_example(${EXE_NAME} noos)
then this problem does not happen.However, when I try to build any tinyusb example by choosing the project in the CMake extension tool, then the example fails to build because
family.c
cannot findboard.h
. If I copy theboard.h
file from theraspberry_pi_pico
directory to thepico-sdk
directory, then the problem is fixed. Adding an empty board.h file here also works.Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
N/A
Screenshots
No response
I have checked existing issues, dicussion and documentation
The text was updated successfully, but these errors were encountered: