cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474 DAC with DMA doesnt work

JHari.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

View solution in original post

2 REPLIES 2
TDK
Guru

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
Associate II

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.