Skip to main content
cht35
Associate
January 29, 2016
Question

Multiple Channel ADC on STM32 L1 Discovery with CooCox

  • January 29, 2016
  • 15 replies
  • 2850 views
Posted on January 29, 2016 at 13:46

Hello STM users,

I have been thrown in 'at the deep' using an STM32L152 in a commercial product design. I have inherited some code which uses the CooCox CooIDE for development and an STM32 L1 discovery board which uses the same IC. I am trying to get 4 channels of ADC acquisition working, either polled or ideally DMA/Interrupt driven. I've been through a few days of trawling the web now but can't seem to find an example which works in this environment. Most of my problems stem from differences in target IC for the examples I have found online. This si my first outing with STM, I'm used to Microchip.

Does anyone have a straight up example of multiple channel ADC on the L1 discovery board that may be compiled under CooCox?

Warmest regards from cold Mid Wales,

Peter

my CoIDE version is Version: 1.7.8

#discovery-l1-adc-multiple
This topic has been closed for replies.

15 replies

cht35
cht35Author
Associate
January 29, 2016
Posted on January 29, 2016 at 17:43

Okay thank you so much both will investigate, still on the picosecond part of the rise time here, my apologies.

Peter

cht35
cht35Author
Associate
January 29, 2016
Posted on January 29, 2016 at 18:30

Thank you Clive for the example code, you've gone above and beyond, as I've gathered from your other postings here as well. Peter.

cht35
cht35Author
Associate
January 29, 2016
Posted on January 29, 2016 at 21:03

Hello Clive, 

finally getting something like here with your help, I can't figure out how to PM you but if you can point me in the right direction to getting hold of your details I'd like to send you 'a slice of my slice' for today.

Best Regards

Peter
Tesla DeLorean
Guru
January 29, 2016
Posted on January 29, 2016 at 21:44

Click the name under the avatar, or see the email tag in most posted code examples.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
cht35
cht35Author
Associate
January 30, 2016
Posted on January 30, 2016 at 11:20

Tis' done, and well worth it. : )