Compiling other people’s code, for dummies

Here's some stuff I didn't know, when first I wanted to compile other people's code. If there's a CMakeLists.txt: mkdir build, cd build, cmake .., make If there's only a Makefile, make Subsequent "sudo make install" usually installs it somewhere accessible via path If you're missing a library or header file FOO, probably: apt-get install … Continue reading Compiling other people’s code, for dummies

Raspberry Pico fail to boot from flash

So. If you should find that the code runs from the debugger, but does not start on its own when you plug in the usb, add to your rootmost CMakeLists.txt set(PICO_BOARD pico_pair) referencing pico-sdk/src/boards/include/boards/pico_pair.h and if you don't have that file, just copy pico-sdk/src/boards/include/boards/pico.h but add these three lines near the top, after the name … Continue reading Raspberry Pico fail to boot from flash