
Chain RP2040 DMA Channels for Continuous Transfers
Chain RP2040 DMA channels with chain_to so one starts as the other finishes, and use a control channel to rotate through a list of buffers without the CPU.
Tag
8 posts

Chain RP2040 DMA channels with chain_to so one starts as the other finishes, and use a control channel to rotate through a list of buffers without the CPU.

Configure and start an RP2040 DMA transfer with dma_channel_get_default_config and dma_channel_configure in Pico SDK 2.1, including fills, rings and completion.

Cut RP2040 current by gating unused clocks with the CLOCKS sleep-enable registers and entering dormant mode, then wake on a GPIO edge with pico-extras.

Read a TMP102 sensor on a Raspberry Pi Pico with i2c_init, i2c_write_blocking and i2c_read_blocking, using nostop for the repeated start.

Make an RP2040 appear as a USB keyboard with TinyUSB: the HID report descriptor, the 8-byte report, keycodes, press and release, and the LED output report.

Build a USB CDC serial device on the RP2040 with the Pico SDK and TinyUSB, from the stdio shortcut to descriptors, tusb_config.h and an echo loop.

Handle a Pico button press with an RP2040 GPIO interrupt: the event mask, the callback signature, one shared callback for several pins, and a flag for main.

Wire a button to a Raspberry Pi Pico, enable the pull-up with gpio_pull_up and read it with gpio_get in C using Pico SDK 2.0, with CMake and expected output.