Page 1 of 1

STM32F37x ADC vs SDADC clocks

Posted: Thu Oct 19, 2017 3:29 pm
by dflogeras
Hi,

I'm using ChibiOS-16.x.y on a stm32f372. I'm currently using the SDADC to perform conversions, but this requires me to set HAL_USE_ADC.

The side effect I'm noticing is that I cannot scale the APB2 clock tree down as far as I'd like because it is requiring me to stay within the acceptable range for the ADC peripheral. Could this be addressed in a future version? Is there a technical reason I shouldn't be able to do this?

Thanks,
Dave

Re: STM32F37x ADC vs SDADC clocks

Posted: Sat Oct 21, 2017 4:56 pm
by Giovanni
Hi,

Moving this in "bug reports", this limitation is not intentional, probably the check should be modified.

Giovanni

Re: STM32F37x ADC vs SDADC clocks

Posted: Sun May 27, 2018 9:04 am
by Giovanni
bump

Re: STM32F37x ADC vs SDADC clocks

Posted: Fri Jun 01, 2018 8:24 am
by Giovanni
Hi,

I committed a change in trunk about this. Will backport if requested.

Giovanni

Re: STM32F37x ADC vs SDADC clocks

Posted: Sun Jun 10, 2018 2:50 am
by dflogeras
Hey Giovanni, thanks for this patch

It looks like you may have a copy/paste error in 12060, you repeated SDADC1 three times, I bet you meant SDADC1 | SDADC2 | SDADC3.

Re: STM32F37x ADC vs SDADC clocks

Posted: Sun Jun 10, 2018 5:14 am
by Giovanni
Where exactly? I cannot find that.

Giovanni

Re: STM32F37x ADC vs SDADC clocks

Posted: Sun Jun 10, 2018 5:37 pm
by dflogeras
Sorry about that, lines 856 and 862 of os/hal/ports/STM32/STM32F37x/hal_lld.h

https://sourceforge.net/p/chibios/svn2/12060/

Re: STM32F37x ADC vs SDADC clocks

Posted: Wed Aug 01, 2018 11:44 am
by dflogeras
patch.zip
proposed fix
(600 Bytes) Downloaded 592 times

Re: STM32F37x ADC vs SDADC clocks

Posted: Sun Aug 26, 2018 8:25 am
by Giovanni
Hi,

Fixed as bug #974. There was also another small problem.

Giovanni