2016-01-27 02:50 AM
Hello,
I am trying to get a simple example going for the ADC of an STM32F407V discovery board.I tried the VBAT sampling example, but so far without luck. I only get ''0,0'' via serial port on the output.My environment is based on CooCox, and I configure the clocks (f_sys) to run on 48 MHz with HSE 8 MHz. I use DMA to transfer data from the ADC to the main display function.How can I start/debug the setup and experiment with the different ADC modes?Thanks! #adc2016-01-27 05:01 AM
Dear Poseid,
Debugging in Coocox is similar to other IDEs like Keil, IAR etc. Just set Configurations for your debugger. In coocox goto view>configuration>debugger, select your Adaptor and Port . Just see raw value of ADC.2016-01-27 05:47 AM
Thanks, where do I find the memory address location for the raw ADC values?
2016-01-27 11:17 PM
As you wrote ''I use DMA to transfer data from the ADC to the main display function.''
So I hope your main display function is processing some raw data, before sending it to serial port. So in this function you can debug the raw data(received from DMA/ADC)
2016-01-28 08:28 AM
Thanks!
I've found some nice examples that worked on my Discovery board via this blog: http://myactivities-mazen.blogspot.de/2013/04/adc-with-stm32f4.html2016-01-29 01:16 AM
From: poseid
Posted: Thursday, January 28, 2016 5:28 PMSubject: Example for simple ADC conversionThanks!
I've found some nice examples that worked on my Discovery board via this blog:http://myactivities-mazen.blogspot.de/2013/04/adc-with-stm32f4.html