2019-08-25 09:21 AM
Dear All,
Please consider STM32F407. I tried to configured its three ADCs: ADC1 and ADC2 in dual intereleved and ADC3 in independent mode using CubeMX. BUT it is impossibe the job using that. Is it possible to moddify the CubeMX's generated code to work correctly? How can I do the project?
Regards, Rasool
2019-08-25 12:46 PM
I suspect it is possible, perhaps look at the HAL examples and adapt. Start with a Dual example, then fire up ADC3
For F4 I would have used the SPL
2019-08-25 07:38 PM
I initilize the ADC in dual mode and independent mode separately but i don't have success in my application.
I think, there is no basically difference between my code and the one generated with CubeMX though both of them are based on HAL library.
What is the true initialization for these ADCs?
2019-08-25 09:50 PM
Please consider
2019-08-25 10:41 PM
To be blunt, Cube often fails miserably for non-standard use cases. Don't put your trust in such auto-generated code.
You can either check check the Cube output and look for errors, or use your own code based on the reference manuals.
I don't know any reason why your setup should not work.
I always used the ADC independantly, though.