2016-09-15 02:51 PM
Hello everyone!
I have issue with initializing ADC1 and ADC2 in regular simultanious mode + DMA. I am using CubeMx and Hal drivers. Here is my configuration.http://s8.picofile.com/file/8267541418/1.JPG
and I start ADCs with these functions. HAL_ADC_Start(&hadc2); HAL_ADCEx_MultiModeStart_DMA(&hadc1,(uint32_t *)adcData,3); but no success. Cpu hangs after calling MX_ADC2_Init(). Is there anything wrong? Any example or guide? thanks a lot. #stm32f103c8t62016-09-16 03:08 AM
Hi,
The ADC examples provided within the firmware Package can be a reference for your application and it can be updated depending on your needs: STM32Cube_FW_F1_V1.4.0\Projects\STM3210C_EVAL\Examples\ADC\ADC_DualModeInterleavedHave a look to the following application notes about ADC: and which help you for ADC users.You can refer to this reference manual in ''11 Analog-to-digital converter (ADC)''.Regards2016-09-16 02:22 PM
thanks for your reply.
I've read these documents, but still I don't know what is wrong. My configuration in CubeMx is correct and I start the ADCs just like that example. However as I mentioned CPU hangs at MX_ADC2_Init() before calling: HAL_ADC_Start(&hadc2); HAL_ADCEx_MultiModeStart_DMA(&hadc1,(uint32_t *)adcData,3); Is it possible that it is CubeMx bug? thanks in advance