ADC in dual simultanious mode
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-15 2:51 PM
Posted on September 15, 2016 at 23:51
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. #stm32f103c8t6
Labels:
- Labels:
-
STM32F1 Series
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-16 3:08 AM
Posted on September 16, 2016 at 12:08
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)''.RegardsOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-16 2:22 PM
Posted on September 16, 2016 at 23:22
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