I tried running the Pico Examples hello_sha256, on a Pico 2W, in RISCV mode
The takes longer when DMA is enabled than without DMA:
Time for sha256 of 1M bytes without DMA 27ms
Time for sha256 of 1M bytes with DMA 32ms
I was expecting the opposite, based on the high level API:
sdk: 2.0.0
Pico2 W in RISCV mode
example version: freshly cloned by Pico VSCode Extension
The
Code:
nist_test()Time for sha256 of 1M bytes without DMA 27ms
Time for sha256 of 1M bytes with DMA 32ms
I was expecting the opposite, based on the high level API:
toolchain: RISCV_ZCB_RPI_2_1_1_3use_dma Set to true to use DMA internally to copy data to hardware. This is quicker at the expense of hardware DMA resources
sdk: 2.0.0
Pico2 W in RISCV mode
example version: freshly cloned by Pico VSCode Extension
Statistics: Posted by jancumps — Thu Sep 04, 2025 8:29 pm