2019-03-26 09:57 PM
my project is based on energy optimization of stm32f303. so for that how i supply different input voltage (because i use dynamic voltage scaling) and i how i measure the current value?
2019-03-27 12:10 AM
Download the F30x DSP Peripheral Library from ST's site, which contains a FFT example.
This example progam uses a constant data array as input. Replace this constant array with your own data, which you get from the ADC.
Said peripheral library also contains ADC examples you can use for a start. They will need some tweaking, because the ADC channel might not match, and the generally used ADC mode (continuous mode) is not appropriate for Fourier analysis.