-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance the ADC functionality on the STM32 devices to all available ADC channels #32288
Comments
From my debugging on the blackpill_f411ce (stm32f411ce), the STM32 code states that PWM works only for 1 or 2 channels. Under the Arduino Framework, all ADC channels are accessible on the blackpill_f411ce, and also there is no channel usage limitation on nRF52840 under Zephyr. |
hey guys problem with the current stm32 adc drv:
Idea:
example:
I am sure that this principle can be easily extend over different stm32 MCUs. |
This is critical for my project so I added the ability to use a shared IRQ on the stm32f4x, so that all 3 channels can be used. Please see the PR here: #37585 This is my first contribution so feedback would be great. Thanks! Edit: My PR is for using multiple ADC devices (e.g adc1, adc2, adc3) with 1 shared interrupt for all the adc's. But I will be looking into using multiple channels on a single adc once this PR is accepted. |
sir is there any progress of using multiple channels with adc_sequence struct. I am trying to use two channels but get -1 in the output result. I am using stm32l475 MCU with disco_l475 board. |
Is your enhancement proposal related to a problem? Please describe.
Recently I’ve been testing out ADC & PWM functionality on the nRF52840 & STM32 (blackpill_f411ce) boards under Zephyr, as part of an effort to move projects over from Arduino framework to Zephyr.
I’m finding that the current ADC support in Zephyr for the STM32 boards is quite limited. From my debug sessions, it appears that only one or two ADC channels are currently supported on the STM32. On the blackpill_f411ce (stm32f411ce), only one ADC channel on pin PA1 is currently supported.
Zephyr does support multiple ADC channels on other boards, for example, with the Particle Xenon (nRF52840), I’m able to access all 6 ADC channels without any issues.
As the STM32 devices are very popular and used extensively, it would be very useful to have full channel support.
Describe the solution you'd like
Extend ADC channel support on the STM32 (blackpill_f411ce and other) from the current one or two channels to all the available ADC channels.
Describe alternatives you've considered
The current temporary fallback has been to use the Arduino Framework with the STM32 blackpill_f411ce to access the available ADC channels. I certainly would prefer to use Zephyr.
Additional context
Add any other context or graphics (drag-and-drop an image) about the feature request here.
The text was updated successfully, but these errors were encountered: