-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Labels
Description
Operating System
Linux
Board
Raspberry Pi Pico
Firmware
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 ?
- Start with tinyusb code after commit 1cfc88d
- Clone the pico-examples project
- Install Microsoft VS Code IDE per the instructions
- Open a Linux terminal window
export PICO_SDK_PATH=[path to the pico-sdk directory]export PICO_BOARD=picoexport BOARD=raspberry_pi_picoexport FAMILY=rp2040- Start VS Code by typing the command
code - File->Open Folder... and open the
pico-examplesproject directory where you cloned it - Set the toolchain, etc.
- Observe the project fails to build because the board_test, msc_dual_lun, and and cdc_msc
CMakeLists.txtfiles cannot execute thefamily_configure_device_example()call.
If I replace the last line of each CMakeLists.txt with family_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 find board.h. If I copy the board.h file from the raspberry_pi_pico directory to the pico-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
- I confirm I have checked existing issues, dicussion and documentation.