cancel
Showing results for 
Search instead for 
Did you mean: 

Co-existance of ADC1 and DMA on STM32G0B1CE

AWack
Associate III

Hi,

I´m running ADC1 (IN1, IN2, IN6, IN7) with DMA process. Everything works fine. But if I try to initialize afterwards the DAC1_OUT1 (normal or DMA - both tried) I get a hard fault. 

Is there a general collision between DAC and ADC or would could be the problem.

Best regards,

Achim

2 REPLIES 2
TDK
Guru

There shouldn't be any problems using ADC and DAC and DMA all together. Likely the problem is a bug in the code.

A few ways to tackle the problem:

  • Use the hard fault analyzer to see what's going on. Probably a forced error. The address might shed light into why it's occurring.
  • Debug the code, see what the call stack is when hard fault is hit.
If you feel a post has answered your question, please click "Accept as Solution".
AWack
Associate III

Hi,

 

I made some further tests and it seams that it is only a problem together with USBPD / TCPP01. But don´t know why...