Page 1 of 1

STM32F42X ADC and ART settings

Posted: Tue Sep 27, 2016 6:33 am
by Rick Burnett
I've been reading through the ST application notes on getting the ADC to be more accurate.

I ran across a section talking about configuring ART to use data and instruction cache, but disabling prefetch. I've been trying to figure out how this relates to settings in ChibiOS but not really finding anything.

Anyone have some pointers on this? Is ART enabled in ChibiOS by default?

Rick

Re: STM32F42X ADC and ART settings

Posted: Tue Sep 27, 2016 7:52 am
by Giovanni
Hi,

ART is enabled by default, all settings are meant to be in their optimal state. The initialization code is in hal_lld.c/.h.

Giovanni

Re: STM32F42X ADC and ART settings

Posted: Tue Sep 27, 2016 3:31 pm
by Rick Burnett
Excellent, thanks for letting me know.

I need to shut off the prefetch to test performance without it AND see how the ADC behaves. ST recommend shutting off the prefetch portion only if you need to get better ADC accuracy.