Bug in STM32CubeMX v 4.22.0 with dual ADC mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-07-11 9:48 AM
When I had generated code with dual ADC on regular simultaneous mode from STM32CubeMX, the code after compiled couldn't get to work and rised error handler, so I traced the problem, found that there is a multiple mode configure function in ADC init function, but the configure function only works with ADC1, here is the reason. and I will illustarte it below:
- Here is the configure of ADC1 and ADC2
- This is the code in ADC2_Init function:
- The source code of this function, in the read box, the statement will be false:
- Here is the macros:
So, this code in ADC2_Init is meaningless, and bolck the program, I have to delete it everytime after I regenerated the project.
Hopes It's usefull for your guys.
Best Regards,
Zheng.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-07-11 6:57 PM
And, the code generated in ADC2_Init function, lacking 'hadc2.Init.ExternalTrigConv = ADC_SOFTWARE_START;' as Ali said in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-07-12 12:44 AM
Hello
Liang.Zheng
,Thank you for your reported issue.I will raise this issue internally for checking and come back to you.
Thanks
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-07 10:03 AM
Hi
Liang.Zheng
, Thanks for having reported the issue.The correction is going to be delivered in next CubeMx v4.1.
Regards.
Cyril
