Yay! You hero. Many, many thanks. I haven't given it an exhaustive testing but seems to be working for me -Then the addition to my 'CMakeLists.txt' files becomes -That prevented the 'cmake' from downloading the 'picotool' source code. And then 'make' just ran, completed, no hangs etc.No luck building for RP2350 yet, nor for RISC-V, but that's for some other day.
The main thing now seems to be how to avoid needing that 'set(picotool_DIR ...)' in every 'CMakeLists.txt'.
The pragmatic approach would be to hack one of the SDK '.cmake' files to put it there, so done for everything, but I don't really like that.
On Raspberry Pi OS there's a final 'make install' which puts some files in places the SDK '.cmake' files seem to be looking to find it -
/usr/local/lib/cmake/picotool/*
/usr/local/share/picotool/*
I would guess there's something similar under Windows ? The question is where and what to copy ?
Code:
c:\Program Files\Raspberry Pi\Pico SDK v2.0.0\picotool> picotool versionpicotool v2.0.0 (Windows, GNU-12.2.0, Release)
Code:
set(picotool_DIR $ENV{PICO_SDK_PATH}/../picotool)
Code:
c:\mypico\simplest\build> lsCMakeCache.txt Makefile generated pico_flash_region.ld pioasm-install simplest.dis simplest.elf.mapCMakeFiles cmake_install.cmake pico-sdk pioasm simplest.bin simplest.elf simplest.uf2
Code:
c:\mypico\simplest\build> picotool info -a simplest.uf2File simplest.uf2:Program Information name: simplest binary start: 0x10000000 binary end: 0x1000187cFixed Pin Information noneBuild Information sdk version: 2.0.0 pico_board: pico build date: Aug 9 2024 build attributes: Release
The main thing now seems to be how to avoid needing that 'set(picotool_DIR ...)' in every 'CMakeLists.txt'.
The pragmatic approach would be to hack one of the SDK '.cmake' files to put it there, so done for everything, but I don't really like that.
On Raspberry Pi OS there's a final 'make install' which puts some files in places the SDK '.cmake' files seem to be looking to find it -
/usr/local/lib/cmake/picotool/*
/usr/local/share/picotool/*
I would guess there's something similar under Windows ? The question is where and what to copy ?
Statistics: Posted by hippy — Fri Aug 09, 2024 6:02 pm