2017-03-27 05:15 AM
Start with new CubeMX project, selecting NucleoF303ZE board. Enable 1 single ended channel on each of ADC1 and ADC3. Select Regular Conversion Trigger for both.
CubeMX generates this line in MX_ADC3_Init():
hadc3.Init.ExternalTrigConv = ADC_EXTERNALTRIGCONV_EXT_IT11; // incorrect
IT_11 is incorrect for ADC3, it should be EXT_IT2
hadc3.Init.ExternalTrigConv = ADC_EXTERNALTRIGCONV_EXT_IT2; // correct
.ioc file attached.
2017-03-27 06:53 AM
Hi,
Which CubeMx version are you using ? I will check this case then come back to you.
Imen
2017-03-27 09:17 AM
4.20.0
Thanks,
Larry
2017-03-29 11:01 AM
Thank you Larry for your reported issue. I raised this error internally to our CubeMx team.
Imen
2017-08-24 06:46 AM
Hello
Lukis.Larry
,I would like to thank you for your feedback.
I confirm you that the correction will be in CubeMX 4.
Kind regards
Sirma