Skip to content

Some upstream update of the build tools has broken things #16

@smcameron

Description

@smcameron
CMake Warning at build/_deps/pico_sdk-src/tools/Findpicotool.cmake:28 (message):
  No installed picotool with version 2.0.0 found - building from source

  It is recommended to build and install picotool separately, or to set
  PICOTOOL_FETCH_FROM_GIT_PATH to a common directory for all your SDK
  projects
Call Stack (most recent call first):
  build/_deps/pico_sdk-src/tools/CMakeLists.txt:138 (find_package)
  build/_deps/pico_sdk-src/src/cmake/on_device.cmake:33 (pico_init_picotool)
  build/_deps/pico_sdk-src/src/rp2040/boot_stage2/CMakeLists.txt:57 (pico_add_dis_output)
  build/_deps/pico_sdk-src/src/rp2040/boot_stage2/CMakeLists.txt:101 (pico_define_boot_stage2)

...

[ 46%] Building C object source/CMakeFiles/badge2024_c.dir/hal/delay_rp2040.c.obj
/home/scameron/github/testbadge2/badge2024/source/hal/delay_rp2040.c: In function 'recover_from_sleep':
/home/scameron/github/testbadge2/badge2024/source/hal/delay_rp2040.c:37:5: warning: implicit declaration of function 'clocks_init'; did you mean 'clocks_hw'? [-Wimplicit-function-declaration]
   37 |     clocks_init();
      |     ^~~~~~~~~~~
      |     clocks_hw

...

[ 98%] Building C object source/CMakeFiles/badge2024_c.dir/hal/mic_library/src/OpenPDM2PCM/OpenPDMFilter.c.obj
[100%] Linking CXX executable badge2024_c.elf
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/badge2024_c.dir/hal/delay_rp2040.c.obj: in function `recover_from_sleep':
/home/scameron/github/testbadge2/badge2024/source/hal/delay_rp2040.c:37: undefined reference to `clocks_init'
collect2: error: ld returned 1 exit status
make[2]: *** [source/CMakeFiles/badge2024_c.dir/build.make:2554: source/badge2024_c.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:2663: source/CMakeFiles/badge2024_c.dir/all] Error 2
make: *** [Makefile:101: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions