You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, it would indeed be useful to have the simple async API available on the whole STM32 family. Since I did not want to use the blocking API, I ended up using the DMA API on an STM32F4 in an situation where it is complete overkill and would have preferred the simple async API.
Curiously, I also could not get the DMA system to reliably deliver samples in the correct order in the ring buffer. The documentation warns that this will happen when the buffer overflows, but this is not supposed to happen and I do not get any errors about overflow either.
Hello, I'm starting with embassy and stm32f030c8, and I have a question with ADC and DMA.
It seems that there a two forms of implement async for the ADC depending of the STM32 device:
One uses the ADC IRQ: v1.rs, f1.rs, f3.rs, in this case the examples uses for example
adc.read(&mut pin).await;
The other uses the ADC in blocking mode and uses DMA to get async, there are examples in:
It seems to me that both implementations should work in all the STM32 family, but that they don't seems to be too compatible between them.
Is there a way to use the DMA implementation in the stm32f0 (or stm32f1), is there a way to allow both implementations?
What would be the embassy way, the async without DMA, the one requiring DMA of there will be both allowed?
The text was updated successfully, but these errors were encountered: