I just grabbed the latest source. I was able to build for BP5, but a new error occurred when building for my BP6. cmake is looking for the file pioasm/pioasmTargets.cmake which seems to be missing in that location.
I fixed the problem by executing cmake with the --fresh option.
By the way - I have two directories I use in my copy of the repo - build and build6. For my BP6, I normally type
cd build6
make clean
../CMake6
make
where CMake6 is currently (with the --fresh option added)
cmake -S .. --fresh -B build_rp2350 -DPICO_SDK_FETCH_FROM_GIT=TRUE -DBP_PICO_PLATFORM=rp2350
That solved the problem. It did take longer than usual to build.
These options (except for the --fresh) are listed in the readme file. I just changed the “.” to “…” as I execute the script in a subdirectory.
Also - in my BusPirate shell script, I select the download directory as “./src” and this makes it very easy to install both BP5 and BP6 firmware. I just change to the matching build directory.