David-OConnor / stm32-hal

This library provides access to STM32 peripherals in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An attempt to use DMA on DAC on L476 panics

mbq opened this issue · comments

Hello,
I'm attempting to writing something like waveform_generator.rs for L476; unfortunately an attempt to use write_dma() ends up in panic:

ERROR panicked at [...]/stm32-hal2-1.8.2/src/dma.rs:304:18:
not implemented

Apparently the channel selection for dac is just commented out there...

I just pushed a commit that should fix this.

Thanks; now the panic is gone, however the DMA seem to do nothing (DAC output stays at 0), while direct writes with write_voltage() work as expected.