stm32-hal icon indicating copy to clipboard operation
stm32-hal copied to clipboard

An attempt to use DMA on DAC on L476 panics

Open mbq opened this issue 1 year ago • 2 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...

mbq avatar May 03 '24 21:05 mbq

I just pushed a commit that should fix this.

David-OConnor avatar May 05 '24 16:05 David-OConnor

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.

mbq avatar May 06 '24 21:05 mbq