Skip to main content
RWatt.1
Associate
June 20, 2020
Question

Please can someone point me to ADC sample code for an STM32 running Zephyr. Im using an STM32L476.

  • June 20, 2020
  • 2 replies
  • 1170 views

Hi, Im a newbie to ZEPHR and would like to test the ADC feature, I just want to be able to read the voltage level on an I/O pin. I have been unable to find sample code. Any help would be appreciated.

This topic has been closed for replies.

2 replies

TDK
June 20, 2020

It looks like Zephyr is an RTOS. Can't you just use the STM32CubeL4 examples to interface with the ADC? I guess the only interconnection between the two would be SysTick.

https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects

"If you feel a post has answered your question, please click ""Accept as Solution""."
RWatt.1
RWatt.1Author
Associate
June 22, 2020

Thank you for the link. I will have a look but was hoping that someone had already pulled together sample code with the appropriate overlay and prj files for Zephyr just to get me started.