does anyone know if it's possible to DMA a constant value using the STM32F103? I've scrutinized the datasheet but can't see anything obvious and nothing via Google either. Could do a single word in circular mode of course but it would be nice to avoid the bus access.


Yes this is possible. Just do not increment the source address in memory-to-memory or memory-to-peripheral mode.

DMA_CCRx->MINC (bit 7)

  • \$\begingroup\$ Yes, but will it continually read the value from memory or cache it? \$\endgroup\$ – Charlie Skilbeck Feb 6 '18 at 6:42
  • \$\begingroup\$ @CharlieSkilbeck It will read from memory. That's how the architecture works. \$\endgroup\$ – Jeroen3 Feb 6 '18 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.