Skip to main content
JHari.1
Associate II
Jan 18, 2022 2:51 PM UTC
Solved

STM32G474 DAC with DMA doesnt work

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.
TDK
TDKBest answer
Jan 18, 2022 3:09 PM UTC

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

2 replies

TDK
TDKBest answer
Jan 18, 2022 3:09 PM UTC

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
Jan 19, 2022 8:54 AM UTC

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.