cancel
Showing results for 
Search instead for 
Did you mean: 

Hi everybody, I'm currently trying to write a program on a STM32F303RE that measures an analog signal. I tryed to use the code from @[John Craven]​ but it didn't work. Can anybody help me?

JHins.1
Associate

In this post: https://community.st.com/s/question/0D50X00009XkYXZSA3/adc-with-dma-triggered-by-adc-watchdog-signal-peak-recording

John Graven posted his Code which I took and changed it a bit for my purpose. Unfortunately my Buffer adc_buf and my variable for storing the analog value isn't filled at all.

This is my main.c:

https://docs.google.com/document/d/1ZtZctnhQntjwHBtFVHU-4smgvNHIxBONOpzLEwjVvy4/edit?usp=sharing

I would really appreciate if someone could check my Code and tell me whats wrong.

Thanks a lot!!

Best regards, Hinsi.

1 REPLY 1
JHins.1
Associate

unfortunately the code is too long to post it here :(