view README @ 28:600a394629e6

Use 8 bit auto pull otherwise the PIOs jitter (due to DMA contention I guess?) Don't need to unroll the PIO loops. Create PIo function to reset each PIO. Check the DMA IRQ is for us - we get unknown IRQs which need to be ignored or things break.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 27 Feb 2025 13:58:37 +1030
parents bf483219cb12
children
line wrap: on
line source

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.