2017-03-01 06:26 AM
Hi guys!
I'm currently using the Nucleo 64 board with the STM32F446RE chip.
This microcontroller has 3 ADCs, which according to the reference manual (see pic), can be configured to run as ADC1+ADC in simultaneous mode, and ADC3 independently. This would be for my configuration, MULTI = 0b00110.
In this way I can use the ADC1+ADC2 to simultaneously sample current, and do other stuff with ADC3.
However, in CubeMX when I select Mode as ''Dual Regular Simultaneous Only'', ADC3 gets locked up in that same configuration (see pic).
Unless I misunderstood the Reference Manual, something would seem to be wrong.
Any clues?
2017-03-03 07:29 AM
Hi Andres,
Which CubeMx version are you using ?
Imen
2017-03-03 08:36 AM
Hi Imen,
I'm using 'STM32 Cube V1.0 Version 4.19.0'.
Is it possible to provide a sample code for the Nucleo64-446RE?
Thanks!!!
2017-03-03 08:38 AM
Imen,
I got topics mixed up, there's no sample code needed for this.
2017-03-30 07:19 AM
Hello
Cao.Diego_Andres
,Indeed, it seems that CubeMX behaves wrongly on this specific point.
We will keep you informed when we have a solution and when it will be deliviered.
BR. Eric
2017-05-09 01:07 AM
Hello
Cao.Diego_Andres
,After reading in detail the
doc, we observe that ADC1, 2 and 3 are working together and they take only one value (ADC3 don't take its own value if it works independently as you can see below :ADC1, 2 and 3 are set in MULTI[4:0].
As you already shown, here are the values that ADC1, 2 and 3 can take :
if you want to run as
ADC1+ADC in simultaneous mode, and ADC3 independently, ADC1, 2 and 3 will take the value 00101 (as it is configured in CubeMX).
And when you select this value for ADC1 (ADC2 and ADC3 are configured with this value as well as they are working together).
So, for us, CubeMX is correctly configured.
I hope it will help you.
BR.Eric