Skip to main content
Graduate
July 31, 2024
Question

Co-existance of ADC1 and DMA on STM32G0B1CE

  • July 31, 2024
  • 1 reply
  • 761 views

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

    This topic has been closed for replies.

    1 reply

    Super User
    July 31, 2024

    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.
    AWackAuthor
    Graduate
    July 31, 2024

    Hi,

     

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