# HG changeset patch # User Daniel O'Connor # Date 1740452330 -37800 # Node ID bf483219cb12d95e5584072d689b7344c47d60e8 # Parent 388074ff94741111234b854f196ddf99f66cd836 Add README diff -r 388074ff9474 -r bf483219cb12 README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Tue Feb 25 13:28:50 2025 +1030 @@ -0,0 +1,20 @@ +Build: +cd build +cmake -DPICO_SDK_PATH=$HOME/projects/pico-sdk \ + -DPICO_TOOLCHAIN_PATH=/Applications/ArmGNUToolchain/12.2.rel1/arm-none-eabi/bin \ + -DCMAKE_BUILD_TYPE=Debug \ + .. +make -j 8 + +Debug: +https://github.com/majbthrd/pico-debug/blob/master/howto/openocd.md + +openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -s tcl -c "adapter speed 5000" +/Applications/ArmGNUToolchain/12.2.rel1/arm-none-eabi/bin/arm-none-eabi-gdb -ex "target ext :3333" modulator.elf +load +run + +Debug probe appears as a composite device - the CMSIS debug interface and a CDC serial port which +has the UART of the debugee connected. + +