This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

stm32 ADC driver - no interrupt generated


I try to use the stm32 ADC driver. To see what's going on I have enabled tracing.

Problem is: No samples are going to be read although the adc is enabled.

The trace says it started scanning (see below).

Does anybody has the stm32 ADC driver working?

The trace output looks like this:
ADC:                 stm32_adc_init[ 180]: Initializing device
ADC:           stm32_adc_init_clock[ 416]: Initializing ADC system clk
ADC:          stm32_adc_init_device[ 532]: Setting ADC sample time to)
ADC:             stm32_adc_set_rate[ 329]: Setting rate to 100
ADC:               stm32_adc_lookup[ 231]: Opening device
ADC:               stm32_adc_enable[ 268]: Enabling channel
ADC:      stm32_adc_update_sequence[ 570]: Updating regular group
ADC:      stm32_adc_update_sequence[ 604]: sqr1: 0x00000000 sqr2: 0x0a
ADC:               stm32_adc_enable[ 279]: Starting scanning
ADC:              stm32_adc_disable[ 297]: Disabling channel
ADC:      stm32_adc_update_sequence[ 570]: Updating regular group
ADC:      stm32_adc_update_sequence[ 604]: sqr1: 0xfff00000 sqr2: 0x00
ADC:              stm32_adc_disable[ 306]: Stopping scanning
ADC:             stm32_adc_set_rate[ 329]: Setting rate to 100
ADC:               stm32_adc_enable[ 268]: Enabling channel
ADC:      stm32_adc_update_sequence[ 570]: Updating regular group
ADC:      stm32_adc_update_sequence[ 604]: sqr1: 0x00000000 sqr2: 0x0a
ADC:               stm32_adc_enable[ 279]: Starting scanning

Setting a breakpoint in stm32_dma_isr never gets hit! (for comparison: Setting a breakpoint in for example stm32_serial_ISR immediately gets hit when I have input on my serial line).

I tried both with ADC1 (/dev/adc010) and with ADC3 (/dev/adc110) - both times using channel 10 (i.e. STM32 port PC0).

Anybody any idea?

Cheers Philipp

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]