cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F07 ADC MX_ADC_Init() Handler error

GalBTM
Associate II

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

1 REPLY 1
GalBTM
Associate II

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