Skip to main content
JHari.1
Associate II
January 18, 2022
Solved

STM32G474 DAC with DMA doesnt work

  • January 18, 2022
  • 2 replies
  • 1922 views

0693W00000JMOdcQAH.png0693W00000JMP2lQAH.png0693W00000JMP2gQAH.png0693W00000JMP0lQAH.png0693W00000JMP2RQAX.png0693W00000JMP27QAH.pngI have trying DAC with DMA from STM32G474 eval board. I can see the values being updated to the DOR register and the DAC EN is set to 1. However, the output of the DAC is stuck at 0.

I have attached the cubeide settings.

This topic has been closed for replies.
Best answer by TDK

Initialize it as GPIO output and toggle. Does it move?

There are some solder bridges and switches that can affect how PA4 is routed. See user manual.

2 replies

TDK
TDKBest answer
January 18, 2022

Initialize it as GPIO output and toggle. Does it move?

There are some solder bridges and switches that can affect how PA4 is routed. See user manual.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JHari.1
JHari.1Author
Associate II
January 19, 2022

I didnt realise that the A4 and PA4 are not the same. I checked the schematic after your comment and the problem is fixed. PA4 is connected to A2 pin on the board.