Skip to main content
Visitor II
April 16, 2024
Question

STM32F07 ADC MX_ADC_Init() Handler error

  • April 16, 2024
  • 1 reply
  • 906 views

I'm using the cube for generating code for IAR

there is an ADC with to a DMA 

the MX_ADC_Init() fail, can't tell why 

 the ADC configuration:

GalBTM_0-1713255214217.pngGalBTM_1-1713255227043.pngGalBTM_2-1713255242728.png

GalBTM_3-1713255248844.png

 

 

the DMA configuration:

GalBTM_4-1713255267013.png

 

when i run the code, the fail point is:

 

GalBTM_5-1713255402527.png

 

i have checked that the DMA is initiate first and then the ADC

GalBTM_6-1713255437529.png

 

 

any help will be appreciated

 

thank you

    This topic has been closed for replies.

    1 reply

    GalBTMAuthor
    Visitor II
    April 16, 2024

    I have investigated the fail handle, the first time that the MX_ADC_Init() fail is after the assertion of the parameters:

    at the stm32f0xx_hal_adc.c :

    GalBTM_2-1713262549697.png

     

    i can only guess that there is an issue implementing the parameters into the ADC