David-OConnor / stm32-hal

This library provides access to STM32 peripherals in Rust.
MIT License
147 stars 44 forks source link

An attempt to use DMA on DAC on L476 panics #102

Open mbq opened 2 months ago

mbq commented 2 months ago

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...

David-OConnor commented 2 months ago

I just pushed a commit that should fix this.

mbq commented 2 months ago

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.