Skip to content

issues in examples directory prevent pico-examples project from building #3004

@rppicomidi

Description

@rppicomidi

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 ?

  1. Start with tinyusb code after commit 1cfc88d
  2. Clone the pico-examples project
  3. Install Microsoft VS Code IDE per the instructions
  4. Open a Linux terminal window
  5. export PICO_SDK_PATH=[path to the pico-sdk directory]
  6. export PICO_BOARD=pico
  7. export BOARD=raspberry_pi_pico
  8. export FAMILY=rp2040
  9. Start VS Code by typing the command code
  10. File->Open Folder... and open the pico-examples project directory where you cloned it
  11. Set the toolchain, etc.
  12. Observe the project fails to build because the board_test, msc_dual_lun, and and cdc_msc CMakeLists.txt files cannot execute the family_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions